简体   繁体   English

部署应用程序时,Octopus Deploy未合并我的转换文件

[英]Octopus Deploy is not merging my transformation file when deploying application

I have 3 transformation files in my mvc project called Web.Debug.config, Web.AWS QA.config, Web.Release.config. 我的mvc项目中有3个转换文件,分别是Web.Debug.config,Web.AWS QA.config,Web.Release.config。 I have an environment called AWS QA. 我有一个称为AWS QA的环境。 在此处输入图片说明 I have checked both Configuration Variables and Configuration transforms in the Enable Features section of my build step, I have also added Web.AWS QA.config => Web.config to my Additional transforms section. 我在构建步骤的“启用功能”部分中检查了“配置变量”和“配置”转换,还向“其他转换”部分添加了Web.AWS QA.config => Web.config。

在此处输入图片说明

Yet, when i deploy to the AWS QA environment, i get what is in my normal web.config which is what i use when developing on my local machine, which does not include what i have in Web.AWS QA.config which is what i need. 但是,当我部署到AWS QA环境时,我得到的是正常web.config中的内容,这是在本地计算机上进行开发时使用的内容,而其中不包括Web.AWS QA.config中的内容。我需要。 Am I missing something? 我想念什么吗?

I had the same issue. 我遇到过同样的问题。 Add a powershell script to renam your files in octopus deploy using the Rename-Item command: 使用Rename-Item命令添加Powershell脚本以重命名octopus部署中的文件:

Rename-Item -Path "Web.AWS.QA.Config" -NewName "c:\yourpath\Web.config"

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 八达通部署改造 - Octopus deployment transformation SessionState提供程序的章鱼部署转换 - Octopus Deploy transform of SessionState provider 替换Octopus Deploy的web.config元素 - Replace web.config element for Octopus Deploy 无法将MVC应用程序部署到IIS-是我的web.config文件引起的 - Can't deploy MVC application to IIS - Is my web.config file to blame 将字符串与配置文件中的 Octopus 变量连接起来 - Concatenate string with Octopus variable in the config file 如何在Web Deploy pubxml文件中显式指定Web.config XML转换? - How can I explicitly specify the Web.config XML Transformation in a Web Deploy pubxml file? 在IIS 5.1上部署Silverlight 4应用程序时的数据库连接问题 - Database Connection Problem when deploying Silverlight 4 application on IIS 5.1 部署到新服务器时ASP.NET应用程序中的配置错误 - Configuration error in ASP.NET application when deploying to new server 如何在XML配置文件中指定Octopus内置变量名? - How to specify Octopus built-in variable names in an XML configuration file? 遵循在Google App Engine上部署jsf2.1应用程序的教程时出现错误 - error when following tutorial of deploying jsf2.1 application on google app engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM