Msbuild compile website without placing the site in IIS -
i trying create msbuild script compile , place test app folder on desktop. not want app published iis. have followed several blgos , looked through hashimi's book still cannot figure out. below script. thank much!
<project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <target name="clean"> <itemgroup> <binfiles include="bin\*.*" /> </itemgroup> <delete files="@(binfiles)" /> </target> <target name="compile" dependsontargets="clean"> <msbuild projects="test.vbproj"/> </target> <target name="publish" dependsontargets="compile"> <removedir directories="$(outputfolder)" continueonerror="true"/> <msbuild projects="test.vbproj" targets="resolvereferences;_copywebapplication" properties="webprojectoutputdir=$(outputfolder; outdir=$webprojectoutputdir)\"/> </target> </target> </project>
your script bit awkward (you redefined clean target same the basic clean target).
i'm pretty sure problem comes copywebapplication lots of stuff according properties set in project file , pass command line.
can try following script :
<project defaulttargets="compile" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <target name="compile"> <msbuild projects="test.vbproj" targets="clean;build" properties="outputpath=c:\tmp"/> </target> </project>
if test project website build target should create on folder specified in outputpath/outdir property
Comments
Post a Comment