We help IT Professionals succeed at work.
Get Started

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

129 Views
Last Modified: 2015-10-01
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?
Comment
Watch Question
Developer
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE