【问题标题】:VS 2022 Unable To Find .NET 4.8VS 2022 无法找到 .NET 4.8
【发布时间】:2022-01-15 23:43:36
【问题描述】:

我在我的 Windows 10 机器上从 VS 2019 更新到 VS 2022,现在无法加载项目。加载时,它抱怨未安装引用的 .NET 版本(它是),如果我选择“升级”,它抱怨找不到引用程序集。我尝试将 PATH 变量设置为 dotnet 安装位置(D:\Program Files\dotnet),多次重新安装和修复 4.8 和 4.7。使用 dotnet --info 表示只安装了核心 5 和 6,但我不知道其他版本可能位于何处。

【问题讨论】:

    标签: .net windows-10 visual-studio-2022


    【解决方案1】:

    您可以查看 x 64 程序集 C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework 和 x86 下的文件夹

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
    

    当我卸载我的 VS 2022 预览版时,我遇到了无法识别 .NET Core 3.1 的问题,尽管我安装了 x64 版本。当我安装 x86 版本时,问题已为我解决。 我也修复了我的 VS 2019,但并没有解决问题。

    参考:
    https://docs.microsoft.com/en-us/visualstudio/msbuild/errors/msb3644?view=vs-2022 https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-22
      • 1970-01-01
      • 2022-06-21
      • 2023-04-05
      • 2021-12-30
      • 1970-01-01
      • 2022-06-28
      • 2022-10-15
      相关资源
      最近更新 更多