GodotUtilities
GodotUtilities copied to clipboard
It doesn't work properly in dotnet6, seemingly due to a lower version of msbuild in dotnet6.
CSC(0,0): 分析器程序集“C:\Users\74135\.nuget\packages\firebelley.godotutilities.sourcegenerators\4.0.4\analyzers\dotnet\cs\Firebelley.GodotUtilities.SourceGenerators.dll”引用了编译器的版本“4.5.0.0”,该版本高于当前正在运行的版本“4.3.0.0”。
For me, I had to install the .NET 7 SDK rather than the .NET 6 one. Once I did that, I could then set my project as a .NET 6 project and it built just fine. This seemed to happen when the switchover to using source generators happened, because .NET itself will reference and include a version of the Microsoft.CodeAnalysis dlls, and if that doesn't match or have the calls expected, compilation will fail.
Try the .NET 7 SDK. I know it seems weird to install 7 to build for 6, but that's what I had to do.
I have dotnet 7.0.110 (linux) and I am having a similar error, I am new to c# packages so I might've missed something.
the error:
CSC(0,0): The analyzer assembly '$HOME/.nuget/packages/firebelley.godotutilities.sourcegenerators/4.1.0/analyzers/dotnet/cs/Firebelley.GodotUtilities.SourceGenerators.dll' references version '4.5.0.0' of the compiler, which is newer than the currently running version '4.4.0.0'.