Getting Started with Adobe After Effects - Part 6: Motion Blur
A collection of quick technology learning tips from what people around you learn every day

Sharing single Configuration in more than one projects

Oct 16 2011 12:18AM by Kirti M.Darji   

Today I just learned how to share same configuration file between multiple projects, There are two projects and I need to use same configuration file in both projects. Below code will do the same.

ExeConfigurationFileMap efm = new ExeConfigurationFileMap { ExeConfigFilename = "AppConfig/app.config" };
Configuration configuration = ConfigurationManager.OpenMappedExeConfiguration(efm, ConfigurationUserLevel.None);
if (configuration.HasFile)
{
AppSettingsSection appSettings = configuration.AppSettings;
KeyValueConfigurationElement  element = appSettings.Settings["myconfig"];
Console.WriteLine(element.Value);
Console.ReadKey(true);
}
Read More..   [2 clicks]

Published under: Microsoft .NET Tips ·  ·  ·  · 


Kirti M.Darji
9 · 16% · 5006
4
 
0
Knew
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten



Submit

Your Comment


Sign Up or Login to post a comment.

"Sharing single Configuration in more than one projects" rated 5 out of 5 by 4 readers
Sharing single Configuration in more than one projects , 5.0 out of 5 based on 4 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]