Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

Sample code to enumerate .NET Framework versions

Sample code to enumerate .NET Framework versions

  • Comments 2

I found an interesting post that lists some sample code to enumerate the installed versions of the .NET Framework using APIs inside of mscoree.dll (which is the shim DLL that decides which version of the .NET Framework to load for each managed application that runs on a computer).  This code comes directly from the development team that works on mscoree.dll itself, and it is going to eventually be shipped in the .NET Framework SDK.  Check it out here.


  • Hey Aaron,

    Perhaps my article on this very topic may be interesting to some people :-

    The coding gentleman's guide to detecting the .NET Framework
    URL : http://www.codeproject.com/dotnet/DetectDotNet.asp

  • Thank you for the pointer Nish. I should also link here to some sample code I wrote last year that can be used to detect the version and service pack levels of the various releases of the .NET Framework. It is located at http://astebner.sts.winisp.net/Tools/detectFX.cpp.txt and used the officially recommended detection methods listed on MSDN.
Page 1 of 1 (2 items)
Leave a Comment
  • Please add 6 and 5 and type the answer here:
  • Post