-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AD0001: Analyzer 'Microsoft.CodeAnalysis.CodeStyle.CSharpFormattingAnalyzer' threw an exception of type 'System.TypeLoadException' #7312
Comments
This assembly isn't part of or referenced by the SDK 8.0.300. I have no idea how this message could be appearing. |
Version 42.42.42.42 is a designator for an assembly which is not part of an official build or distribution. Something has provided and loaded an assembly which isn't part of the SDK or Visual Studio; we'd need to locate the specific assembly that is being loaded to understand why it exists on the machine in question. |
I'm encountering this exception with ReSharper cli which can run Roslyn analyzer while inspecting: https://github.com/n0099/open-tbm/actions/runs/9141114339/job/25135170215
This only happens to this |
Since there is no way to link this issue to a product we create or distribute, I'm going to resolve this issue as Won't Fix. The publisher of the unofficial compiler package would be responsible for addressing this. |
See dotnet/roslyn#73508 which looks closely related. |
I have a reproduction of this particular error for anyone interested. See https://github.com/JensDll/LoadError and the latest workflow runs. As far as I can tell, this error is caused by an incompatibility between some built-in analyzers of SDK |
This is likely an issue at the jetbrain side, see - https://youtrack.jetbrains.com/issue/RIDER-111443/Roslyn-analyzer-failure-with-.NET-8-SDK-preview-8.0.300-preview.24203.14-and-8.0.300-release I downgraded the SDK to 8.0.2xx to temporarily work around the issue. |
Analyzer source
SDK: Built-in CA analyzers in .NET 5 SDK or later
Version: SDK 8.0.300
Describe the bug
Rider gives error in each file
AD0001: Analyzer 'Microsoft.CodeAnalysis.CodeStyle.CSharpFormattingAnalyzer' threw an exception of type 'System.TypeLoadException' with message 'Could not load type 'Microsoft.CodeAnalysis.SyntaxList' from assembly 'Microsoft.CodeAnalysis, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.'.
Also
IDE0100
gives false positive result on== false
, like thiswhere ep.Archived == false
Which was not the case before on SDK version 8.0.204
The text was updated successfully, but these errors were encountered: