简体   繁体   English

如何在Visual Studio 2010的目标框架中添加点网版本4.0?

[英]How to add dot net version 4.0 in target framework of visual studio 2010?

在此处输入图片说明

In my visual studio 2010, target framework only include (2.0, 3.0 and 3.5). 在我的Visual Studio 2010中,目标框架仅包括(2.0、3.0和3.5)。
Does not include for 4.0. 不包括用于4.0。
So, may I know how can I add dot net 4.0 to show in target framework. 因此,我可能知道如何添加点网4.0以在目标框架中显示。
I already install dot net version 4 in my pc. 我已经在我的PC中安装了点网版本4。 But doesn't show in target framework. 但未在目标框架中显示。
Please advice me. 请给我建议。

Visual studio checks this folder for .net assembly references Visual Studio将检查此文件夹中的.net程序集引用

C:\Program Files\Reference Assemblies\Microsoft\Framework\xxx

If that folder is missing 4.0 for you, installing a new version of visual studio may create that folder for you. 如果该文件夹缺少4.0,则安装新版本的Visual Studio可能会为您创建该文件夹。 You could also try copying that folder from a different machine. 您也可以尝试从其他计算机复​​制该文件夹。

If that doesn't work, try the answers suggested here: 如果这不起作用,请尝试按以下建议的答案进行操作:

dotnet Framework 4 missing from visual studio 2010 Visual Studio 2010中缺少dotnet Framework 4

EDIT: Source for the first suggestion - http://www.anujvarma.com/visual-studio-does-not-display-4-0-or-4-5-framework-option-for-target-framework/ 编辑:第一个建议的来源-http: //www.anujvarma.com/visual-studio-does-not-display-4-0-or-4-5-framework-option-for-target-framework/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Framework 4.0是否作为Visual Studio 2010安装的一部分安装? - Is .NET Framework 4.0 installed as part of Visual Studio 2010 install? 如何在Visual Studio 2010上显示ASP.NET图表(框架4.0)? - How to display ASP.NET Charts (Framework 4.0) on Visual Studio 2010? 如何将目标框架正确更改为.NET 4.0 - How to properly change target framework to .NET 4.0 如何从visual studio 2003中瞄准更高的.net框架 - How to target higher .net framework from visual studio 2003 Visual Studio 2010 RC + ASP.NET MVC 2 RTM不会从.NET Framework 4重新定位到3.5 - Visual Studio 2010 RC + ASP.NET MVC 2 RTM won't re-target from .NET Framework 4 to 3.5 什么是.Net FrameWork和Visual Studio的最新版本 - What is the latest version of .Net FrameWork and Visual studio 如何确定缺少使用.net Framework 3.5依赖关系的Visual Studio 2010 asp / silverlight项目 - how to work out what Visual studio 2010 asp/silverlight project using .net framework 3.5 dependancies are missing 使用4.0框架和Visual Studio 2010为ASP Classic构建COM互操作库 - Building a COM interop library for ASP Classic using 4.0 framework and Visual Studio 2010 Visual Studio 2015 Express Web 中的目标 .net 框架 2.0 - Target .net framework 2.0 in Visual Studio 2015 Express Web visual studio asp.net mvc,更改目标框架 - visual studio asp.net mvc, changing target framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM