To determine the assembly is compiled in which version of .net, you can use use Assembly.ImageRuntimeVersion.
You may learn the Assembly.ImageRuntimeVersion Property from here: https://msdn2.microsoft.com/en-us/library/system.reflection.assembly.imageruntimeversion(vs.80).aspx
There is a blog discusses on that: https://blogs.msdn.com/suzcook/archive/2003/06/20/57191.aspx
Comments
- Anonymous
May 18, 2007
You might be interested in my DEMO preview handler that shows the same: http://www.danielmoth.com/Blog/2007/01/more-on-preview-handlers.html