can we upgrade vb.net 2005 project to vb.net 2022 ?

Jahan Ara 0 Reputation points
2024-03-17T03:31:17.8333333+00:00

i have been using vb.net 2005 since last 10 years. i have built an app in it. Now i wish to use the app in vb.net 2022. but while upgrading i get error

" Could not resolve
mscorlib for target framework '.NETFramework,Version=v4.0'. This can happen if
the target framework is not installed or if the framework moniker is incorrectly
formatted. Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'. This can happen if the target framework is not installed or if the framework moniker is incorrectly| "Please guide me what should i do ?

any help would be appreciated.

Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2024-03-17T15:54:59.7233333+00:00

    Vb.net 2005 is based on the .net 4 framework. Vb.net 2017 is the last version to support this framework (4.8). Converting to 2017 should just be updating to to runtime 4.8, and updating the nuget packages. There are a lot of runtime binding changes, so it might be easier to create a new 4.8 project, add nuget packages and source file.

    To convert your app to higher than 2017 will depend on which libraries you used. Is there a .net core version? Again conversion is easiest by creating a new project and add sources and libraries.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.