先来看一下原来 vs2008 的代码

 

 

msbuild website\websiteApp.csproj /t:ResolveReferences;Compile /t:_CopyWebApplication /p:Configuration=Release /p:WebProjectOutputDir=r:\website /p:OutputPath=r:\website\bin

 

 

 

再看看 vs2010 的代码

 

path C:\Windows\Microsoft.NET\Framework\v4.0.30319
msbuild website\websiteApp2010.csproj
/t:ResolveReferences;Compile /t:_WPPCopyWebApplication /p:Configuration=Release /p:WebProjectOutputDir=r:\HitoSNS

 

 

差别在于:

1.msbuild需要用4.0的

2.原先的 _CopyWebApplication 不支持,还为_WPPCopyWebApplication

3.原先的 /p:OutputPath 不需要使用

4.指定平台 /p:Platform=AnyCPU ,主要是有些项目可能是发布到64位平台,使用这个指令可以指定最终生成的目标平台

作者:Yahle
原载:http://www.cnblogs.com/yahle
版权所有。转载时必须以链接形式注明作者和原始出处。

先来看一下原来 vs2008 的代码

 

 

msbuild website\websiteApp.csproj /t:ResolveReferences;Compile /t:_CopyWebApplication /p:Configuration=Release /p:WebProjectOutputDir=r:\website /p:OutputPath=r:\website\bin

 

 

 

再看看 vs2010 的代码

 

path C:\Windows\Microsoft.NET\Framework\v4.0.30319
msbuild website\websiteApp2010.csproj
/t:ResolveReferences;Compile /t:_WPPCopyWebApplication /p:Configuration=Release /p:WebProjectOutputDir=r:\HitoSNS

 

 

差别在于:

1.msbuild需要用4.0的

2.原先的 _CopyWebApplication 不支持,还为_WPPCopyWebApplication

3.原先的 /p:OutputPath 不需要使用

4.指定平台 /p:Platform=AnyCPU ,主要是有些项目可能是发布到64位平台,使用这个指令可以指定最终生成的目标平台

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-01-07
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2021-07-05
  • 2022-12-23
  • 2022-01-04
  • 2022-03-05
  • 2021-09-15
相关资源
相似解决方案