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.
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.
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 Kensino on Nov 29, 2012 04:43 AM
Kensino
Member
70 Points
185 Posts
Release Configuration
Nov 28, 2012 02:46 AM|LINK
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.
Angie xu - M...
All-Star
18664 Points
1590 Posts
Microsoft
Re: Release Configuration
Nov 29, 2012 02:24 AM|LINK
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
Feedback to us
Develop and promote your apps in Windows Store
Kensino
Member
70 Points
185 Posts
Re: Release Configuration
Nov 29, 2012 03:10 AM|LINK
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
Angie xu - M...
All-Star
18664 Points
1590 Posts
Microsoft
Re: Release Configuration
Nov 29, 2012 04:33 AM|LINK
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
Feedback to us
Develop and promote your apps in Windows Store
Kensino
Member
70 Points
185 Posts
Re: Release Configuration
Nov 29, 2012 04:43 AM|LINK
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