Configuration Manager In C# Express
am i miss something?
thanks.
best regards,
OktaEndy
thanks.
best regards,
OktaEndy
How to set configuration to Debug or Release? I can't find that config.
if i try to add #if in the code it always show that my code always compile in debug configuration.
in the tree. I see some posts that say it is not possible to select
build configurations with the Express editions. Am I missing a step or
is it not possible?
Mark
This current "most helpful" response to this question states that the config manager does not exist in express -- that is not correct.
The configuration manager DOES exist in Visual C# 2005. The reason why it’s difficult to find is that it's hidden/disabled by the unusual default settings. The same is likely true for the VB.net version
I followed the directions posted by WN and can now use the configuration manager to successfully compile release builds.
The instructions WN provided are:
1. Go to Tools | Options...
2. Select the "Projects and Solutions" node in the tree.
3. Check the "Show advanced build configurations" checkbox
Note: If the above doesn't make sense there's an additional step you need to take between #'s 2 and three:
Make sure that the "Show All Settings" check box is checked in the options form (below the box that displays the tree view). By default the top level nodes visible in the tree view are: Environment, Text Editor and Debugging. Once you check the "Show All Settings" box you will see the Project and Solutions node as well as Database Tools and Windows Form Designer).
All the Steps Worked, The Configuration Manager only available in the Debug Menu
But, I want to Play with it programatically to edit/Add the Keys in App.config. But No Configruation Manager in the Intellisense and is not supported too.
I Have Included the System.Configuration Namespace
using System.Configuration;
Sorry,
Its my mistake. I never added the reference System.Configuration in the solution Explorer. Now it is Working Fine
I tried same but does not work
using
String conStr= ConfigurationManager.ConnectionStrings["DDConnectString"].ToString();
but i get this error
Error 6 The name 'ConfigurationManager' does not exist in the current context \\Server\DServer\Tx\DBUtils.cs 19 27 DQServer
Any help appriciated.
Thanks
You need to reference the System.Configuration (version 2.0) library in your Solution References.