DOTNET框架4从Visual Studio 2010中失踪 [英] dotnet Framework 4 missing from visual studio 2010

查看:166
本文介绍了DOTNET框架4从Visual Studio 2010中失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装了Visual Studio 2010,但是当我创建一个新项目Framework 4的并没有出现在对目标框架的选项。我知道,因为设定为V4新的应用程序池在IIS中创建正确安装框架4。出于某种原因,它只是没有出现在Visual Studio中。我试图修复DOTNET 4和重新安装Visual Studio中,但仍没有运气。任何人有这个问题,或不知道如何解决它?

I just installed visual studio 2010 but when i create a new project Framework 4 does not appear in the options for target framework. I know framework 4 installed correctly because the new app pools set to v4 were created in IIS. For some reason it's just not showing up in visual studio. I tried repairing dotnet 4 and reinstalling visual studio but still no luck. Anyone else have this problem or know how to fix it?

推荐答案

而导致丢失.NET4问题的变化:
1.
我在
改变了一些注册表设置 HKEY_LOCAL_MACHINE \ SOFTWARE \微软\的Windows \ CurrentVersion
的CommonFilesDir
的CommonFilesDir(86)
CommonW6432Dir
ProgramFilesDir的
ProgramFilesDir的(86)
ProgramW6432Dir
所有这些都从C感动:开车到另一个驱动器(E:在我的情况)

2.
我改变了一些用户文件夹的位置:
C:\用户\<名称> \应用程序数据\ LocalLow
C:\用户\<名称> \应用程序数据\漫游
这些被转移(通过属性 - >路径 - >移动按钮),从C:驱动器到F:盘

后恢复1.回驱动器C:
并创建C语言的符号链接:\用户\<名称> \ AppData的新位置,
再次工作(注:我卸载VS恢复更改之前,并安装之后再次)
(创建链接有:MKLINK / D C:\用户\<名称> \应用程序数据\ LocalLow E:\ DATA \ LocalLow)

我不能说,如果真的需要双方的变化,因为我马上改变了两个。
但最后它的工作原理试;)

问候,
Frostregen

Changes which lead to missing .Net4 problem:
1.
I changed some registry settings in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
CommonFilesDir
CommonFilesDir (x86)
CommonW6432Dir
ProgramFilesDir
ProgramFilesDir (x86)
ProgramW6432Dir
All those were moved from C: drive to another drive (E: in my case)

2.
I changed the location of some user folders:
C:\Users\<name>\AppData\LocalLow
C:\Users\<name>\AppData\Roaming
Those were moved (via Properties->Path->"Move" button) from C: drive to F: drive.

After reverting 1. back to drive C:
and creating symbolic links in C:\Users\<name>\AppData to the new locations,
it worked again (note: I uninstalled VS before reverting the changes, and installed again afterwards)
(Create link with: mklink /d C:\Users\<name>\AppData\LocalLow E:\Data\LocalLow)

I can not say if both changes are really needed, because I changed both at once.
But finally it works again ;)

Greetings,
Frostregen

这篇关于DOTNET框架4从Visual Studio 2010中失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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