开发者

ASP.NET MVC Apply web.config transformss on "Publish"

开发者 https://www.devze.com 2023-04-08 02:31 出处:网络
I\'m using VS2010 and I have a Web appl开发者_StackOverflowication that I deploy using the \"Publish\" command.

I'm using VS2010 and I have a Web appl开发者_StackOverflowication that I deploy using the "Publish" command.

I have defined a couple of transformations in the Web.Release.Config file to change the connection string and other settings that need to change in the "live" server.

The problem I'm seeing is that when I execute the "Publish" command it doesn't apply the transformations defined in the web.release.config file.

Any idea on how to achieve this?

Thanks


On visual studio, there should be a select box top on the menu. You need to select the type of your build (Release, Debug, etc.).

Something like below :

ASP.NET MVC Apply web.config transformss on "Publish"

Be careful that it is set to Release.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号