Posted on 2010-11-15
I understand that I will have multiple machine.config files on a machine, 1 per framework version. This brings me to a few questions.
1) Is there a single config file somewhere that I can put common entries in? Specifically I am looking at a readonly connection string for a database that virtually every application we have needs. We have console apps, windows services, and web applications in 1.1, 2.0, 3.5, and 4.0.
2) If I have a .NET 2.0 DLL called from a .NET 4.0 web application, which machine.config will the .NET 2.0 DLL be reading from?
3) How does 64-bit frameworks work into this? If I have a 64-bit 4.0 app calling a 32-bit 2.0 DLL, which config file would the 32-bit 2.0 DLL read from?
Rhetorical: Why couldn't they just name them framework.config and then have 1 common machine.config?