使用 msbuild 命令行转换 web.config [英] transform web.config using msbuild command line

查看:42
本文介绍了使用 msbuild 命令行转换 web.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Looking to setup jenkins to deploy my web app I'm using the script

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 需要进行转换.有什么提示吗?

I get the web application in _PublishedWebsite however the web.config needs to get transformed. Any tips?

推荐答案

来自这篇文章 TFS 2012 未将转换后的 Web.Config 复制到 _PublishedWebsite

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

add /p:UseWPP_CopyWebApplication=true /p:PipelineDependsOnBuild=false to the command solved the issue

这篇关于使用 msbuild 命令行转换 web.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆