如何发布命令行网站与一些发布配置文件? [英] How can I publish site from command line with some publish profile?
本文介绍了如何发布命令行网站与一些发布配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
像
的东西 的MSBuild /吨:发布[使用PublishProfileName] someproject.csproj
解决方案
的MSBuild MyProject.csproj /吨:管道preDeployCopyAllFilesToOneFolder /p:Configuration=Release;_PackageTempDir=C:\\temp\\somelocation;AutoParameterizationWebConfigConnectionStrings=false
请参阅MSBuild 2010 - 如何发布Web应用程序的特定位置(恶性)
对于Visual Studio 2012可以使用
的MSBuild MySolution.sln / P:DeployOnBuild = TRUE; PublishProfile =生产;密码= foo的
请参阅 ASP.NET Web部署使用Visual Studio:命令行部署
Something like
msbuild /t:publish [use PublishProfileName] someproject.csproj
解决方案
msbuild MyProject.csproj /t:PipelinePreDeployCopyAllFilesToOneFolder /p:Configuration=Release;_PackageTempDir=C:\temp\somelocation;AutoParameterizationWebConfigConnectionStrings=false
See MSBuild 2010 - how to publish web app to a specific location (nant)?
For Visual Studio 2012 you can use
msbuild MySolution.sln /p:DeployOnBuild=true;PublishProfile=Production;Password=foo
See ASP.NET Web Deployment using Visual Studio: Command Line Deployment
这篇关于如何发布命令行网站与一些发布配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文