.NET Framework 4.8已安装但未显示在Visual Studio 2019社区中
我的操作系统是Windows 10 Pro
。
我已经安装了.NET Framework 4.8
。我确认2种方法:
- 打开注册表编辑器,然后转到
Computer \ Hkey_local_machine \ Software \ Microsoft \ Microsoft \ Net Framework Setup \ ndp \ ndp \ v4 \ full
键。检查名为版本
的reg_dword条目,其值为528372
。检查名为版本
的reg_sz条目,其值为4.8.04084
。 - 打开文件资源管理器,然后转到
c:\ Windows \ Microsoft.net \ Framework
文件夹。在那里,我看到v4.0.30319
文件夹。进入其中,然后打开accessibility.dll
文件的属性。转到其详细信息,产品版本
是4.8.4084.0
。
我有Visual Studio 2019 Community Edition版本16.4.5
已安装。我打开它,然后创建一个类库(.NET Framework)
类型的新项目。在配置您的新项目节中,在框架
下拉下,我看到最高条目是.NET Framework 4.7.2
。为什么没有进入.NET Framework 4.8的条目?我需要做什么来解决这个问题?
My operating system is Windows 10 Pro
.
I have .NET Framework 4.8
installed. I confirm it 2 ways:
- Open Registry Editor then go to
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
key. Check the REG_DWORD entry namedRelease
and its value is528372
. Check the REG_SZ entry namedVersion
and its value is4.8.04084
. - Open File Explorer then go to
C:\Windows\Microsoft.NET\Framework
folder. There I seev4.0.30319
folder. Go inside it, then open Properties ofAccessibility.dll
file. Go to its Details and theProduct version
is4.8.4084.0
.
I have Visual Studio 2019 Community Edition version 16.4.5
installed. I open it then create a new project of Class Library (.NET Framework)
type. In the Configure your new project section, under Framework
dropdown, I see that the highest entry is .NET Framework 4.7.2
. How come there is no entry for .NET Framework 4.8? What I need to do to solve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
每个.NET框架版本有2种不同的口味,即 Runtime 和 sdk 。要引用.NET Framework 4.8在VS2019中,您需要安装。网络框架4.8开发人员包在系统上。仅拥有.NET Framework 4.8运行时就足以运行运行 .NET框架应用程序,但不开发它们。
您可以在此处查看所有.NET Framework开发人员包的列表:
httpps ://dotnet.microsoft.com/en-us/download/visual-studio-sdks
您可以通过在控制面板中使用“程序和功能”来确认它已安装,并查找“ Microsoft .NET .NET框架” 4.8目标包”。
另外,您可以通过选择“单个组件”下的.NET Framework Targeting Pack通过Visual Studio Installer安装目标包。
There are 2 different flavors of each .NET Framework version, the runtime and the SDK. To reference .NET Framework 4.8 in VS2019, you need to install the .NET Framework 4.8 Developer Pack on the system. Just having the .NET Framework 4.8 runtime is enough to run .NET Framework apps, but not develop them.
You can see a list of all of the .NET Framework Developer Packs here:
https://dotnet.microsoft.com/en-us/download/visual-studio-sdks
You can confirm it is installed by going to "Programs and Features" in your control panel and look for "Microsoft .NET Framework 4.8 Targeting Pack".
Alternatively, you can install the targeting pack through the Visual Studio Installer by selecting ".NET Framework targeting pack" under "Individual components".
更新:在Vs 2022中,在各个组件下,添加4.8个目标包和模板。
Updates: In vs 2022, under individual components, add 4.8 targeting pack and templates.