【发布时间】:2011-02-27 23:15:31
【问题描述】:
我正在使用 Visual Studio 2010 的“发布”功能的配置文件替换功能,如 in this article 所述。我想使用 MSBuild/Hudson 自动执行此操作。有人知道怎么做这个吗?
我喜欢它的工作方式,但如果我不能自动化它,我将不得不切换到 XmlMassUpdate 或类似的。
【问题讨论】:
-
之前这个问题要长得多,但我意识到这个功能实际上与 MSDeploy 无关。
-
对于未来的搜索者:如果您想复制整个“发布到文件夹”功能以在 Hudson、TeamCity 或 CruiseControl.NET 中使用,请使用以下命令:
msbuild /t:Build;PipelinePreDeployCopyAllFilesToOneFolder /p:Configuration=Release;_PackageTempDir=C:\temp\somelocation MyProject.csproj
标签: visual-studio-2010 msbuild hudson