Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there, after 30 years of Programming, I retired and decided to learn .Net VB with Visual Studio Express 2013, and have written a few working Applications on my main PC.
I just purchased a new laptop pre-Installed with Win 8 and installed Visual Studio Community 2015. When I try to load one of my Visual Studio Express 2013 Projects it says "Could not resolve mscorlib for target framework'.NETFramework,Version=v4.5.1'
I checked and I find only Framework Version v1.0, v1.1, v2.0, v3.0, v3.5 and v4.0.30319 inside C:\Windows\Microsoft.Net\Framework.
When I download .Net Framework 4.5.1 and try to Install, I get the warning "The .NET Framework 4.5 and this update are already installed on your computer"

Any suggestions where I go from here?
Posted
Updated 12-Nov-15 12:13pm
v2
Comments
Wombaticus 11-Nov-15 17:44pm    
As far as the folders are concerned, that's normal even with v4.5 installed. Look in control panel (installed programs) to get a better idea of which versions are installed. Assuming you project isn't too large, if it were me I'd just re-build it from scratch - an empty project, add any project references it needs, then copy / paste the files from your original into the new project folder(s) and then including them into the project. You'll probably find it goes ok.
Member 12095443 11-Nov-15 17:44pm    
Just tried Installing Framework 4.5 (Just incase I need that first) and get the Message
"1. Microsoft .NET Framework 4.5 is already a part of this operating system. You do not need to install the .NET Framework 4.5 redistributable.
2. Same or higher version of .NET Framework 4.5 has already been installed on this computer."

Why do I get that message when trying to load my Project then?
Member 12095443 11-Nov-15 17:49pm    
My Project is not very small and would take some time to rewrite it again. I copied the whole Project from my main PC to laptop and then tried to open it.
Would be it be sufficient just to copy resources and the sln file?
George Jonsson 11-Nov-15 22:14pm    
What you can try to do is to create a new project in VS2015, save it and then open the .vbproj file in, for example, Notepad and then open your problem .vbproj file and see if there are any difference that stands out.
The .sln file you can delete, it is the project files and the source files that are the important ones.
Worst case you have to create a brand new project of the same type as the old and add the source files to this project.
Member 12095443 12-Nov-15 16:57pm    
Thanks, the last suggestion about .vbproj worked. Have a problem with my database but I will post a new Question.

1 solution

I put my comment as an answer so this question disappears from the unanswered section.

What you can try to do is to create a new project in VS2015, save it and then open the .vbproj file in, for example, Notepad.
Then open your problem .vbproj file and see if there are any difference that stands out.

The .sln file you can delete, it is the project files and the source files that are the important ones.

Worst case you have to create a brand new project of the same type as the old and add the source files to this project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900