SergeyTeplyakov / ErrorProne.NET

Set of roslyn-based analyzers for catching common C# errors (inspired by Google's error-prone)
MIT License
869 stars 43 forks source link

exception thrown when running analyzer #256

Closed vpenades closed 2 years ago

vpenades commented 2 years ago

Hi, very nice project, found it from the excelent "avoding struct pitfalls" article at devblogs!

After installing ErrorProne.NET.Structs in my project, I got some very good hints, but also lots of these:

Warning CS8032  An instance of analyzer ErrorProne.NET.StructAnalyzers
.DefaultEqualsOrHashCodeIsUsedInStructAnalyzer
cannot be created from ... Could not load type 

and

Warning CS8032  An instance of analyzer ErrorProne.NET.StructAnalyzers
.UseInModifierForReadOnlyStructAnalyzer
cannot be created from ... Could not load type 

and

Warning CS8032  An instance of analyzer ErrorProne.NET.StructAnalyzers
.MakeStructReadOnlyAnalyzer
cannot be created from ... Could not load type 

and

Warning CS8032  An instance of analyzer ErrorProne.NET.StructAnalyzers
.NonDefaultStructs.NonDefaultableStructsConstructionAnalyzer
cannot be created from ... Could not load type 

and provably more...

Dunno what it means.

vpenades commented 2 years ago

Ok, it seems msbuild was not paying attention to the package version and it was using 0.1.0 instead of the latest one.