c# - How to find path of active app.config file? -
I'm trying to eliminate this exception handler:
if (ConfigurationManager ConnectionStrings ["connection string"] == faucet) {string pathOfActiveConfigFile = ...? New configuration error exceptions ("You have either forgotten to set the connection string, or you are using" + "a unit test framework that looks at the config files in strange locations, update this file:" + pathOfActiveConfigFile ); } This problem is with me only when I am using nUnit.
Comments
Post a Comment