I have created an application which uses .NET 3.5. However, some Windows XP machines give the following error:
Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
It's because they have installed a version older than 3.5. How could I check the .NET version decently? I mean I can't check it from my application itself since it's looking for the 3.5 DLL files when the program is launched.
What I thought of, is creating a very simple program using .NET 2.0, and then checking what versions are installed (this program as a launcher). However I'd like to hear your opinions.