samedi 26 juillet 2014

compilateur - déterminer quelle version de Silverlight, un assembly est généré sous - Stack Overflow


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.




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.



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.



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.


0 commentaires:

Enregistrer un commentaire