Skip to content
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

sdk warning on nuget package Microsoft.CodeAnalysis.CodeStyle #9855

Closed
elachlan opened this issue Sep 7, 2023 · 7 comments
Closed

sdk warning on nuget package Microsoft.CodeAnalysis.CodeStyle #9855

elachlan opened this issue Sep 7, 2023 · 7 comments

Comments

@elachlan
Copy link
Contributor

elachlan commented Sep 7, 2023

I followed all the instructions for installing and starting VS from a script, but I get 91 of the errors below. I do have ,Net 4.8 installed from VS installer but where do I get new compiler?

Severity	Code	Description	Project	File	Line	Suppression State
Warning	CS9057	The analyzer assembly 'C:\Users\PaulM\Source\Repos\winforms\.dotnet\sdk\8.0.100-preview.7.23376.3\Sdks\Microsoft.NET.Sdk\codestyle\cs\Microsoft.CodeAnalysis.CodeStyle.dll' references version '4.8.0.0' of the compiler, which is newer than the currently running version '4.7.0.0'.	Accessibility-version	C:\Users\PaulM\Source\Repos\winforms\.dotnet\sdk\8.0.100-preview.7.23376.3\Sdks\Microsoft.NET.Sdk\codestyle\cs\Microsoft.CodeAnalysis.CodeStyle.dll	1	Active

Originally posted by @paul1956 in #9807 (comment)

@elachlan
Copy link
Contributor Author

elachlan commented Sep 7, 2023

@lonitra created the issue. Does the team want to remove the package and use the SDK version of the analyzers?

@Tanya-Solyanik Tanya-Solyanik added the untriaged The team needs to look at this issue in the next triage label Sep 7, 2023
@Tanya-Solyanik
Copy link
Member

@paul1956 - what version of the VS are you on?

@elachlan
Copy link
Contributor Author

elachlan commented Sep 8, 2023

@Tanya-Solyanik do we need VS preview? I get these warnings in VS 2022 17.7.3

image

@paul1956
Copy link
Contributor

paul1956 commented Sep 8, 2023

@paul1956 - what version of the VS are you on?

Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.7.3

I used below from PowerShell to start Visual Studio.

.\start-vs.cmd

I also have the current preview Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.8.0 Preview 1.0
but don't know how to start it with the included script as it always starts the production version.

@RussKie
Copy link
Member

RussKie commented Sep 19, 2023

I also have the current preview Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.8.0 Preview 1.0 but don't know how to start it with the included script as it always starts the production version.

You need to right click on any sln file and set the newer version of VS as the one to open "sln" files. Then the script will open the solution in that instance of VS.

@merriemcgaw
Copy link
Member

@paul1956 is this solved by launching with the correct developer command prompt?

@merriemcgaw merriemcgaw added 📭 waiting-author-feedback The team requires more information from the author and removed untriaged The team needs to look at this issue in the next triage labels Sep 19, 2023
@paul1956
Copy link
Contributor

@merriemcgaw both solutions above work to start the prerelease version of VS. The original issue about sdk warnings is not solved in production release, it is solved in prerelease.
Thanks.

@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Sep 20, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants