Sun
Aug 31
2008

Build ASP.NET WebService from the Command-line

This NAnt target will build the project into a new folder with a (single) precompiled DLL. All source files and other non-deployment files are removed.

<target name="publish.webservice">
    <exec basedir="."
          program="${msbuild.exe}"
          commandline=" ${web.project.file}
                        /nologo
                        /p:OutDir=${publish.webservice.dir}\bin\
                        /p:WebProjectOutputDir=${publish.webservice.dir}"
          workingdir="."
          failonerror="true" />
</target>

Leave a reply

© 2006 Brian Low. All rights reserved.