You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All analyzers from assembly Microsoft.CodeAnalysis.CodeStyle.Fixes failed to load: Unable to load one or more of the requested types. Method not found: 'Boolean Microsoft.CodeAnalysis.IParameterSymbol.get_IsParamsArray()'.
#73508
Closed
bertenbobje opened this issue
May 16, 2024
· 5 comments
Version Used:
.NET SDK 8.0.300 Steps to Reproduce:
Have a .NET 8 project open
Check the Roslyn Analyzer logs
See that no projects were able to load due to the error below
A minimal repro, with source-code provided, is ideal. Using sharplab is preferred for compiler/language issues whenever possible.
Diagnostic Id: All analyzers from assembly Microsoft.CodeAnalysis.CodeStyle.Fixes failed to load: Unable to load one or more of the requested types. Method not found: 'Boolean Microsoft.CodeAnalysis.IParameterSymbol.get_IsParamsArray()'.
If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g. "IDE0030: Use coalesce expression").
Expected Behavior:
Roslyn loading for the projects.
Actual Behavior:
Roslyn not loading for projects.
The text was updated successfully, but these errors were encountered:
Yes, I have lots of similar error messages with .NET SDK 8.0.300
Analyzer 'Microsoft.CodeAnalysis.CSharp.RemoveUnnecessaryLambdaExpression.CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer' threw an exception of type 'System.TypeLoadException' with message 'Could not load type 'Microsoft.CodeAnalysis.SeparatedSyntaxList' from assembly 'Microsoft.CodeAnalysis, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.'.
System.TypeLoadException: Could not load type 'Microsoft.CodeAnalysis.SeparatedSyntaxList' from assembly 'Microsoft.CodeAnalysis, Version=42.42.42.42, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
at Microsoft.CodeAnalysis.CSharp.RemoveUnnecessaryLambdaExpression.CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.GetParameters(AnonymousFunctionExpressionSyntax expression)
at Microsoft.CodeAnalysis.CSharp.RemoveUnnecessaryLambdaExpression.CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.AnalyzeSyntax(SyntaxNodeAnalysisContext context, INamedTypeSymbol expressionType, INamedTypeSymbol conditionalAttributeType)
at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info, CancellationToken cancellationToken) in Z:\BuildAgent\work\3b7ce003563d6f8f\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1185
-----
Suppress the following diagnostics to disable this analyzer: IDE0200
Got that in JetBrains Rider IDE, whereas the Visual Studio 2022 works well. And that actually starts after Visual Studio update. I suppose it updates .NET SDK "by the way".
Version Used:
.NET SDK
8.0.300
Steps to Reproduce:
A minimal repro, with source-code provided, is ideal. Using sharplab is preferred for compiler/language issues whenever possible.
Diagnostic Id:
All analyzers from assembly Microsoft.CodeAnalysis.CodeStyle.Fixes failed to load: Unable to load one or more of the requested types. Method not found: 'Boolean Microsoft.CodeAnalysis.IParameterSymbol.get_IsParamsArray()'.
If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g.
"IDE0030: Use coalesce expression"
).Expected Behavior:
Roslyn loading for the projects.
Actual Behavior:
Roslyn not loading for projects.
The text was updated successfully, but these errors were encountered: