dotnet / dotnet/arcade

Assembly versions mismatch for CodeAnalysis

Open
#10,341 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
C#
Stars
729
Forks
397
Avg merge
3d 15m
Merged PRs (30d)
149

Description

I am getting this error within VS 2022 preview 6 (public preview) when opening a project from the aspnetcore repository.

```
Warning CS9057 The analyzer assembly 'C:\code\aspnetcore\.dotnet\sdk\7.0.100-rc.1.22375.2\Sdks\Microsoft.NET.Sdk\codestyle\cs\Microsoft.CodeAnalysis.CSharp.CodeStyle.dll' references version '4.4.0.0' of the compiler, which is newer than the currently running version '4.3.0.0'.
```

This seems to break some refactoring features too (like renaming property)

Contributor guide

Open the contributing guide

Research direction

Reproduce the warning in VS 2022 preview 6 by opening a project from the aspnetcore repository. Compare the compiler and analyzer versions shown in the message, including Microsoft.CodeAnalysis.CSharp.CodeStyle.dll under the .dotnet SDK codestyle path; done means the assembly-version warning and the reported refactoring breakage no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.