就像是
msbuild / t:发布[使用PublishProfileName] someproject.csproj
@H_403_4@解决方法
msbuild MyProject.csproj /t:PipelinePreDeployCopyAllFilesToOneFolder /p:Configuration=Release;_PackageTempDir=C:\temp\somelocation;AutoParameterizationWebConfigConnectionStrings=false
见MSBuild 2010 – how to publish web app to a specific location (nant)?
对于Visual Studio 2012,您可以使用
msbuild MySolution.sln /p:DeployOnBuild=true;PublishProfile=Production;Password=foo
见ASP.NET Web Deployment using Visual Studio: Command Line Deployment
@H_403_4@ @H_403_4@