Avatar of railcrewxpress
railcrewxpress
Flag for United States of America asked on

VB.NET System.Environment.Version different than target framework

I have a console program where I have set the Target Framework (all configurations) in the Advanced Compile Options to use .NET Framework 3.5. However, when I place MsgBox(System.Environment.Version.ToString) in my code it shows 2.0.50727.5485.

We have an issue with connecting to a web service that the provider suggests might be related to the version of the framework we are using. I'm trying to confirm that we are indeed using 3.5.  

Am I displaying the wrong variable in my code or is it really using 2.0? If it is using 2.0, is there something different I need to do to force it to use 3.5?
Visual Basic.NET.NET Programming

Avatar of undefined
Last Comment
railcrewxpress

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
it_saige

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
David Johnson, CD

what you are seeing is the .net clr version and not the net framework version
railcrewxpress

ASKER
Thank you for your help!
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes