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
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!)
Set "TestProject.Vsix" as the startup project.
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.
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).
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.
The text was updated successfully, but these errors were encountered:
Version Used:
VS 2022 - 17.11.6
Steps to Reproduce:
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.Expected Behavior:
See the diagnostic message on the class declaration.
Actual Behavior:
No diagnostic message is seen on the class declaration.
The text was updated successfully, but these errors were encountered: