c# - 使用 msbuild 命令行转换 web.config
问题描述
希望设置 jenkins 来部署我的网络应用程序我正在使用脚本
msbuild WEB.csproj /p:Configuration=stage /t:Build /p:PrecompileBeforePublish=true /p:OutputPath=c:\test /p:DeployOnBuild=true /p:AutoParameterizationWebConfigConnectionStrings=False
我得到了 web 应用程序,_PublishedWebsite
但是web.config
需要转换。有小费吗?
解决方案
从这篇文章TFS 2012 没有将转换后的 Web.Config 复制到 _PublishedWebsite
添加/p:UseWPP_CopyWebApplication=true /p:PipelineDependsOnBuild=false
到命令解决了这个问题
推荐阅读
- node.js - 如何解决 UnhandledPromiseRejectionWarning: MongooseError: Operation `menus.find()` buffering timed out after 10000ms 这个节点 js 中的问题?
- mysql - 如何在 Tuple Criteria MYSQL 中使用空值进行查询
- python - 找出字符串列表是否是人名
- sql - T-sql 替换 concat collate
- websocket - Swift5 - URLSessionWebSocketTask - 使用客户端 pong 响应来自服务器的 ping
- angular - 如何使用 ngx translate 翻译角材料小吃栏中的文本
- sql - BigQuery SQL:从日志表创建每日当前状态表
- ruby - Sidekiq 中未删除的繁忙工作
- javascript - 如何从 React 中的 Promise 获取值?
- hadoop - 超长单行输入文件的 Hadoop mapreduce 输入格式