Now that Visual Studio 2008 is out (and another department compiles
our production code), we want to know (at run time, in the manifest,
or by examining the executables) which compiler compiled our source
code?
How can we tell, after the fact, which compiler compiled our source
code?
Honestly, I don't know if a native way exists to do this but I'd be
surprised if there was (but you never know). You can always add your own
custom assembly attribute however and read this at runtime (via
"Assembly.GetCustomAttributes()"). I'm referring to a custom attribute you
would create and add to each project's "AssemblyInfo.cs" file (say,
"SourceCompilerAttribute"). In your case you may want to add this to a
central file instead of each project's "AssemblyInfo.cs" file. All projects
in your solution can then "link" to it. This file is typically called
"SolutionInfo.cs" which you can Google for. Here are a couple links I
quickly found which seem to discuss the issue (though I didn't read them in
detail - I originally discovered this technique in the book "Programming
..NET Components" by Juval Lowy - he's recognized by MSFT as a leading .NET
expert):
http://bloggingabout.net/blogs/jsch...C00_-or-simplify-versioning-of-solutions.aspx
http://ilmatte.wordpress.com/2008/02/10/solutioninfo-and-partitioned-single-solution/