Showing posts with label managed code. Show all posts
Showing posts with label managed code. Show all posts

Friday, 17 June 2011

Configuring managed code that runs via COM interop

Scenario: .Net managed code library (assembly) depends on settings in a .config file. The library is used via COM interop from some unmanaged code application (i.e. MyLegacyGame.exe) written, say, in C++


Question: what should be the name of the .config file ?


Answer: MyLegacyGame.exe.config


There is a problem with that, however, if your native app is in fact part of windows