Opening a Unity project in Visual Studio 2022 yields the following error:
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
Does anyone know the root cause of this issue? It only seems to be occuring after updating to Unity 2022.3.25...
Have not tried anything yet as am unsure where to start.