Unity.Properties.SourceGenerator.PropertyBagGenerator无法创建?错误

问题描述 投票:0回答:1

在 Visual Studio 2022 中打开 Unity 项目会产生以下错误:

CS8032: An instance of analyzer Unity.Properties.SourceGenerator.PropertyBagGenerator cannot be created from x:\x\x\2022.3.25f1\Editor\Data\Tools\Unity.SourceGenerators\Unity.Properties.SourceGenerator.dll: Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=x' or one of its dependencies. The system cannot find the file specified.. Assembly-CSharp C:\Program Files\Unity\Hub\Editor\2022.3.25f1\Editor\Data\Tools\Unity.SourceGenerators\Unity.Properties.SourceGenerator.dll

有人知道这个问题的根本原因吗?似乎只有更新到 Unity 2022.3.25 后才会出现...

还没有尝试过任何东西,因为我不确定从哪里开始。

c# .net unity-game-engine
1个回答
0
投票

您可以将这两个文件替换为以前安装的文件夹中的文件。 (只需安装旧编辑器,无需其他任何东西,并重命名原始文件以确保它们的安全)。 就我而言,它有效。

© www.soinside.com 2019 - 2024. All rights reserved.