views:

150

answers:

1

I have a Silverlight project in which I compile to both Silverlight 2 and Silverlight 3 using the instructions here which imports MSBuild targets into the csproj file from two seperate locations holding Silverlight 2 and 3 targets respectively.

The build/compilation seems to work, producing two different files, but I was wondering if (and how) I can determine which compiler-version produced a specific assembly. To be clear, I'm not looking for the version of the assembly it self, rather the version of the compiler which produced it (I'm assuming that it is registered somewhere in the assembly for loading and verification purposes by the runtime)

Can I get this information (Reflector, Ildasm?), I just wanted to do a simple verification that the build process used the two different versions as intended.

+1  A: 

I'm not sure what you mean by the version of compiler. The compiler hasn't changed between SL2 and 3, both use the version 3 compiler. What makes SL2 differ from SL3 are the libraries that are referenced.

Unfortunately the SL3 libraries are still numbered 2.0.5.0 which makes a determination rather awkward.

AnthonyWJones
Was unaware of the non-changing compiler. Thanks, Anthony
soren.enemaerke