VS2022 安装低版本的.Framework框架

一、VS控制台打开程序包管理控制器,输入如下命令:

  • 安装.Framework 4.5

    Install-Package Microsoft.NETFramework.ReferenceAssemblies.net45 -Version 1.0.2

  • 安装.Framework 4.5.1

    Install-Package Microsoft.NETFramework.ReferenceAssemblies.net451 -Version 1.0.2

  • 安装.Framework 4.5.1

    Install-Package Microsoft.NETFramework.ReferenceAssemblies.net452 -Version 1.0.2

二、拷贝框架文件到C盘对应目录文件下

  • .Framework 4.5

源:build/.NETFramework/v4.5
目标:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5

  • .Framework 4.5.1

源:build/.NETFramework/v4.5.1
目标:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.1

  • .Framework 4.5.2

源:build/.NETFramework/v4.5.2
目标:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2

版本下载命令查找:https://www.nuget.org/packages/microsoft.netframework.referenceassemblies.net20

posted @ 2022-06-06 18:31  码农阿亮  阅读(669)  评论(0编辑  收藏  举报