Is there a difference between changing the targetFramework version in the Visual Studio program properties and the vbproj file?

40 views Asked by At

I have tried to change the targetFramework version on the VS program properties from 4.0 to 4.5, and I got an error that I couldn't solve. Finally, I tried to change the version through the vbproj file of the program in the setting of "targetFrameworkVersion" and now the program works properly (also in the properties in VS the version has changed).

What is the difference between the two options and can I know for sure that the version has changed?

1

There are 1 answers

0
Jiachen Li-MSFT On

Both options should produce the same result.

When the <TargetFrameworkVersion> tag of the project file is changed and saved, after rebuilding the project, you should successfully modify the target framework of the project.