MSBuild Script and VS2010 publish apply Web.config Transform

前端 未结 6 1288
囚心锁ツ
囚心锁ツ 2020-11-28 01:13

So, I have VS 2010 installed and am in the process of modifying my MSBuild script for our TeamCity build integration. Everything is working great with one exception.

6条回答
  •  萌比男神i
    2020-11-28 02:01

    You should be able to accomplish this by using the Package target and specifying the temp directory.

    msbuild solution.sln /p:Configuration=Release;DeployOnBuild=true;DeployTarget=Package;_PackageTempDir=..\publish
    

    http://pattersonc.com/blog/index.php/2010/07/15/visual-studio-2010-publish-command-from-msbuild-command-line/

提交回复
热议问题