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

Vsix explorer does not show code issues in updated Microsoft.CodeAnalysis #76589

Open
rykermcintyre opened this issue Dec 30, 2024 · 0 comments
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@rykermcintyre
Copy link

Version Used:
VS 2022 - 17.11.6

Steps to Reproduce:

  1. Open VS and create a new project "TestProject" with template "Analyzer with Code Fix (.NET Standard)" (no need to change any code in the template!)
  2. Set "TestProject.Vsix" as the startup project.
  3. Run unit tests, confirm they pass. Run solution. Open any C# solution/project to analyze, or just create a new C# console app and create a basic class (e.g., namespace ConsoleApp1 { public class Program { static void Main() { Console.WriteLine("Hello World!") } } }). Confirm you see "Type name contains lowercase letters" message on the class declaration. Close Vsix explorer.
  4. Go to NuGet package manager > Updates. Select all and update (this brings Microsoft.CodeAnalysis to 4.12.0 and Microsoft.CodeAnalysis.Analyzers to 3.11.0, among other updates).
  5. Run unit tests, confirm they pass. Run solution. Diagnostic message no longer seen on class declaration.

Expected Behavior:

See the diagnostic message on the class declaration.

Actual Behavior:

No diagnostic message is seen on the class declaration.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

1 participant