.NET说我没有Framework 4.5.1,但Framework Installation说它已经安装了。 [英] .NET says I have no Framework 4.5.1 but Framework Installation says its already installed.

查看:337
本文介绍了.NET说我没有Framework 4.5.1,但Framework Installation说它已经安装了。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,经过30年的编程,我退休并决定使用Visual Studio Express 2013学习.Net VB,并在我的主PC上编写了一些正在运行的应用程序。

我刚刚购买了一台预安装了Win 8并安装了Visual Studio Community 2015的新笔记本电脑。当我尝试加载我的一个Visual Studio Express 2013项目时,它说无法为目标框架解析mscorlib '.NETFramework,Version = v4.5.1'

我查了一下,我发现里面只有Framework Version v1.0,v1.1,v2.0,v3.0,v3.5和v4.0.30319 C:\ Windows \ microsoft.Net \ Framework。

当我下载.Net Framework 4.5.1并尝试安装时,我收到警告.NET Framework 4.5和此更新是已安装在您的计算机上



我从这里开始的任何建议?

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?

推荐答案

我把我的评论作为答案,所以这个问题从未答复的部分消失。



您可以尝试做的是在VS2015中创建一个新项目,保存然后再打开.vbproj文件,例如,记事本。

然后打开你的问题.vbproj文件,看看是否还有e有任何突出的区别。



您可以删除.sln文件,它是项目文件和重要源文件。



最坏的情况是你必须创建一个与旧版本相同类型的全新项目,并将源文件添加到该项目中。
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.


这篇关于.NET说我没有Framework 4.5.1,但Framework Installation说它已经安装了。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆