在C#项目的目标是" .Net框架,版本= V4.5",这是不是这台机器上安装 [英] The C# project is targeting ".Net Framework, Version =v4.5",which is not installed on this machine

查看:982
本文介绍了在C#项目的目标是" .Net框架,版本= V4.5",这是不是这台机器上安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用安装在Windows 8的这个下午VS 2012 C#项目。它工作得很好,我上传我的code到TFS在我离开之前回家。

但是,当我下载并打开使用VS 2012项目安装在Windows 7上我得到了下面的错误消息。

  

在C#项目的目标。NET Framework版本= V4.5,这是   没有安装这台机器上。要继续,请点击下方选项。

     
      
  1. 更改目标.Net框架4.5。您可以在稍后的时间变回。NET Framework版本= 4.5版。
  2.   
  3. 下载针对包。NET Framework版本= V4.5。该项目将不会改变。
  4.   
  5. 请不要加载的项目。
  6.   

我相信我已经在我的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.

The C# project is targeting ".Net Framework, Version =v4.5",which is not installed on this machine. To proceed, select an option below.

  1. Change the target to .Net Framework 4.5. You can change back to ".Net Framework, Version=v4.5" at later time.
  2. Download the targeting pack for ".Net Framework, Version=v4.5". The project will not change.
  3. Do not load the project.

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",这是不是这台机器上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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