【问题标题】:transform web.config using msbuild command line使用 msbuild 命令行转换 web.config
【发布时间】:2019-04-10 04:43:07
【问题描述】:

希望设置 jenkins 来部署我正在使用脚本的网络应用程序

msbuild WEB.csproj /p:Configuration=stage /t:Build /p:PrecompileBeforePublish=true /p:OutputPath=c:\test /p:DeployOnBuild=true /p:AutoParameterizationWebConfigConnectionStrings=False

我在_PublishedWebsite 中获得了Web 应用程序,但是web.config 需要进行转换。有什么建议吗?

【问题讨论】:

    标签: c# visual-studio jenkins msbuild web-config-transform


    【解决方案1】:

    来自这篇帖子TFS 2012 not copying transformed Web.Config to _PublishedWebsite

    在命令中添加/p:UseWPP_CopyWebApplication=true /p:PipelineDependsOnBuild=false 即可解决问题

    【讨论】:

    • 感谢您在这里分享您的解决方案,您可以Accept it as an Answer。这可能对阅读此主题的其他社区成员有益,我们可以关闭此主题,谢谢。
    猜你喜欢
    • 1970-01-01
    • 2011-06-18
    • 2012-05-17
    • 2023-04-04
    • 2014-05-08
    • 1970-01-01
    • 2012-02-17
    • 2011-11-03
    • 1970-01-01
    相关资源
    最近更新 更多