Comments (5)
Can confirm this problem still persists with SDK version 8.0.301
from roslyn.
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".
from roslyn.
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
from roslyn.
What helps me as workaround:
- Manually install .NET 8.0.206 with
winget install --id Microsoft.DotNet.Sdk.8 --version 8.0.206
- Create a global.json file in repo root with the following:
{
"sdk": {
"version": "8.0.206",
"allowPrerelease": false
}
}
Seems like Visual Studio Installer remove globally installed previous version (8.0.206) of .NET SDK
from roslyn.
Duplicate of #72811
from roslyn.
Related Issues (20)
- [Automated] PRs inserted in VS build feature.debugger.main-35011.277
- [Automated] PRs inserted in VS build main-35011.102
- VB.NET SemanticModel doesn't resolve type of a member even though it could
- CS8795 reported when expression with reference to another assembly happen HOT 1
- Peek definition doesn't work on source-generated methods
- EnforceCodeStyleInBuild reports suggestions as errors in 8.0.300 HOT 12
- Test LanguageServerCleansUpOnUnexpectedJsonRpcDisconnectAsync failed in CI HOT 2
- MemberNotNullWhen child types HOT 1
- Task List filtering for current project doesn't work as expected HOT 1
- Outlining no longer obeys preferences HOT 1
- Generic parameter constrained to implement true, false, &, |, operators in separate interfaces still generates CS0217 or CS0218 error HOT 14
- WINDOWS Preprocessor not hiding CA1416 with target framework net8.0-windows HOT 2
- Link in docs/contributing/README.md should work.
- Permit Where to do nullability checks HOT 2
- Test Microsoft.CodeAnalysis.LanguageServer.UnitTests.DocumentChanges.DocumentChangesTests.FindReferencesInChangingDocument(mutatingLspWorkspace: False) failed in CI HOT 1
- Overridden != and == do not affect nullability HOT 1
- It looks like PEEventSymbol's constructor assumes that we always have both accessors.
- Long-running IAsyncEnumerable<T> leaks the last seen enumerated value. HOT 4
- Roslyn 4.10.0 does not compile for .NET 6 HOT 3
- [Automated] PRs inserted in VS build feature.debugger.main-35014.68
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roslyn.