The problem is that I need to know if it’s version 3.5 SP 1. Environment.Version() only returns 2.0.50727.3053.
I found this solution, but I think it will take much more time than it’s worth, so I’m looking for a simpler one. Is it possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Something like this should do it. Just grab the value from the registry
For .NET 1-4:
Frameworkis the highest installed version,SPis the service pack for that version.For .NET 4.5+ (from official documentation):