locked
Release Configuration RRS feed

  • Question

  • User724469650 posted

    I'm using 2012 Professional and I've been trying to create a release configuration for my website, and also use the new web.config transforms. However, I'm not able to create a release configuration. Even when I go into configuration manager and create a new configuration, the only option I'm given is Debug.

    Also, when I right-click the web.config file, as MSDN says, I don't have the option to add a new transform.

    I've been looking around, but I can't find anyone else with a similar problem. How can I fix this?

    It's getting very annoying as I have to keep changing my connection string, and other settings every time I want to try a debug build on the beta server, and then I have to change them again when I'm publishing to the live server. Sometimes I forget to make the change, and everything goes down.

    Thanks.

    Tuesday, November 27, 2012 10:46 PM

Answers

  • User724469650 posted

    According to Microsoft, there is a release and debug option for websites, otherwise, someone hacked their website and put up false information... Which wouldn't suprise me.

    http://msdn.microsoft.com/en-us/library/dd465318(v=vs.100).aspx

    I don't see any reason for a web.config file to be included in a Windows application, so this is a website document.

    To specify the changes that you want to be make in Web.config files, you use transform files. A transform file is associated with a build configuration. By default, Visual Studio creates Debug and Release build configurations. You can also create custom build configurations

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 29, 2012 12:43 AM

All replies

  • User-166373564 posted

    Hi

    Generally You can switch between Release and Debug  by using the Standard toolbar or the Configuration Manager.

    You could follow the article to do it here.

    If you still encounter same problem, please let me know.

    hope it helps you.

    Kind regards

    Wednesday, November 28, 2012 10:24 PM
  • User724469650 posted

    Yes, it works that way when I have a Windows Application. When I create a Website, I do not have that option.

    Here is a screen shot:

    http://screenshots.kennethrjones.com/no-release-configuration.png

    Thanks

    Wednesday, November 28, 2012 11:10 PM
  • User-166373564 posted

    Hi

    Website is different from Windows Application, so there isn't release option when create a website.

    You could learn relevant information in internet, such as Web Application Projects versus Web Site Projects in Visual Studio-

    http://msdn.microsoft.com/en-us/library/dd547590.aspx

    Kind regards

    Thursday, November 29, 2012 12:33 AM
  • User724469650 posted

    According to Microsoft, there is a release and debug option for websites, otherwise, someone hacked their website and put up false information... Which wouldn't suprise me.

    http://msdn.microsoft.com/en-us/library/dd465318(v=vs.100).aspx

    I don't see any reason for a web.config file to be included in a Windows application, so this is a website document.

    To specify the changes that you want to be make in Web.config files, you use transform files. A transform file is associated with a build configuration. By default, Visual Studio creates Debug and Release build configurations. You can also create custom build configurations

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 29, 2012 12:43 AM