willvv
willvv

Reputation: 8649

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

I'm using VS2010 and I have a Web application 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

Upvotes: 2

Views: 355

Answers (1)

tugberk
tugberk

Reputation: 58494

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 :

enter image description here

Be careful that it is set to Release.

Upvotes: 2

Related Questions