问题描述
我正在使用安装在Windows 8的这个下午VS 2012 C#项目。它工作得很好,我上传我的code到TFS在我离开之前回家。
但是,当我下载并打开使用VS 2012项目安装在Windows 7上我得到了下面的错误消息。
我相信我已经在我的Windows 7的笔记本电脑安装了.NET Framework 4.5。现在,我无法载入我的项目。任何一个知道如何解决这个问题呢?
非常感谢!
---------------更新--------
谁的人有同样的问题:
我卸载VS 2012和.NET Framework 4.5,然后重新安装两者。的问题得到解决。现在,我可以载入我的项目。
右键单击您的项目,然后单击属性。在选项卡应用程序看看你是否有在目标框架下拉列表中选择4.5框架的选项。如果你拥有它,选择它,然后尝试重新生成项目。如果你没有这个选项,进入程序和功能,在Windows 7中,并确保你已经安装了.NET Framework 4.5。如果你拥有了它,然后尝试修复安装VS 2012的这个相同的菜单,并再次确认你的选择,在目标框架下拉列表中。
I am working on a C# project using VS 2012 installed on windows 8 this afternoon. It works well and I upload my code to TFS before I left for home.
But when I download and open this project using VS 2012 installed on windows 7. I got the error message below.
I am sure I have installed .Net Framework 4.5 on my windows 7 laptop.Now, I cannot load my project. Any one know how to solve this problem?
Many thanks!
--------------- updates--------
For people who have the same problem:
I uninstalled VS 2012 and .Net Framework 4.5 and re install both of them. The problem is solved. Now I can load my project.
Right-click your project and click in "Properties". In the tab "Application" see if you have the option for the 4.5 framework in the "Target Framework" dropdown list. If you have it, just select it and try to build your project again.If you don't have this option, go to "Programs and Features" in Windows 7 and make sure you have .NET Framework 4.5 installed. If you have it, then try repairing your installation of VS 2012 in this same menu and verify again your options in the "Target Framework" dropdown list.
这篇关于在C#项目的目标是" .Net框架,版本= V4.5",这是不是这台机器上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!