Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We are trying to load the third party dll during run time. So we planned to use the System.Configuration. We like to know whether is it possible to use Environment variable in System.Configuration file. If so please share the example also.
Posted
Comments
Sergey Alexandrovich Kryukov 12-Feb-13 13:05pm    
Please don't re-post.
I already asked you to explain what do you want to achieve. Please don't repeat what you already said. Explain from the very beginning.
—SA

Nope yo can not mix environment variables within app.config...
 
Share this answer
 
Yes, you can use Environment variables in the values in a configuration file.
BUT: before you use one of those values, you have to resolve the environment variables. You can use Environment.ExpandEnvironmentVariables for that purpose.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900