Skip to content

Question: How to use this in a .NET Core MSBuild project? #3

@mcejp

Description

@mcejp

I would be very grateful for any hints, because I'm struggling to find anything useful online.

I added this into my .csproj file:

<PropertyGroup>
    <AnalysisLevel>latest</AnalysisLevel>
</PropertyGroup>

<ItemGroup>
    <PackageReference Include="SwitchEnumAnalyzer" Version="1.0.0.4" />
</ItemGroup>

Now I would expect dotnet build to emit warnings about incomplete switch statements in my code. However, I'm not seeing any new output. Am I misunderstanding how the analyzer works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions