cslaforum icon indicating copy to clipboard operation
cslaforum copied to clipboard

5.1.0 Csla.Analyzers Warning

Open animjn opened this issue 5 years ago • 4 comments

Just updated to 5.1. Great release 👍

Do you think these ↓ warnings may be because Analyzers are pending to be updated to 5.1...?

An instance of analyzer Csla.Analyzers.xxx cannot be created from xxx\nuget\packages\csla\5.1.0\xxx

animjn avatar Feb 27 '20 11:02 animjn

@jasonbock, any ideas?

I've seen this too, but not consistently.

rockfordlhotka avatar Feb 28 '20 18:02 rockfordlhotka

Nope. I just created a .NET Core console app, referenced CSLA 5.1.0, and the analyzers seem to be working as expected. Maybe the project type matters? @animjn what project are you making? Is it targeting .NET Core or .NET Framework, and what version?

JasonBock avatar Feb 29 '20 21:02 JasonBock

Hi @JasonBock. I was referencing CLSA from a Class Library (.NET Standard). I received the warnings when I was updating to 5.1.0, however, I don't reproduce it anymore. Thanks!

animjn avatar Mar 02 '20 09:03 animjn

@animjn I have noticed that this can happen when first updating from an older version, and closing and reopening Visual Studio seems to help. I suspect Visual Studio keeps some old info in memory even after the update?

rockfordlhotka avatar Mar 02 '20 17:03 rockfordlhotka