Trying to Build and Publish Asp.net website from command line using aspnet_compiler

后端 未结 3 874
野趣味
野趣味 2021-01-19 03:10

I am trying this. I have built asp.net website. When I publish to IIS through VS2008 it works fine. Lets say my site is at c:\\projects\\Website1\\ I want to publish it to c

3条回答
  •  遥遥无期
    2021-01-19 03:57

    From http://johnnycoder.com/blog/2008/01/29/getting-started-with-cruisecontrolnet/

    I have pasted the information, in case his blog ever goes down.

    1. For web solutions, update the TargetPath for the Debug and/or Release build of the application to be outside of the source application directory. Otherwise, you will receive the following error:

    ASPNETCOMPILER : error ASPRUNTIME: The precompilation target directory cannot be in the same tree as the source application directory.

    This can be done by modifying the following in the solution file:

    Debug.AspNetCompiler.TargetPath = “c:\ccnet\PrecompiledWeb\SampleWeb\”
    Release.AspNetCompiler.TargetPath = “c:\ccnet\PrecompiledWeb\SampleWeb\”
    

    Alternative, one may update the Output location found in the application MSBuild properties.

    You may be wondering why an updated solution won’t be updated with the next scheduled build. As it works out (and makes sense) only changes which are applied to source control are pulled onto the build box.

提交回复
热议问题