Skip to content

RS0041 cannot be solved for Resources.Designer.cs #5521

Open

Description

Analyzer

Diagnostic ID: RS0041: Symbol uses some oblivious reference types

Analyzer source

NuGet Package: Microsoft.CodeAnalysis.PublicApiAnalyzers

Version: 3.3.2 (Latest)

Problem

I get a lot of warnings similar to these on various Resources.Designer.cs files:

Warning RS0041 Symbol 'ResourceManager.get' uses some oblivious reference types

Since this is code generated by PublicResXFileCodeGenerator, I have no way of annotating those generated types. I don't want to turn off RS0041 because everything else is annotated correctly. I don't see a way how to solve this except by turning of RS0041 for the whole project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions