2

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

1
  • tugberk has a great suggestion, but it might help if you posted the relevent portions of your web.config and your transforms to see if the problem is in your transform definition. Commented Sep 25, 2011 at 18:58

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

That was it, I thought the "Publish" action automatically selected Release, changed that and it worked. Thanks
@willvv well, I have been there once :) glad that it helped.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.