Skip to content

Fix RS1038 related warnings found in Interop source generators #88701

@buyaa-n

Description

@buyaa-n

Fix warnings found with RS1038 analyzer

Recent analyzer updates flown to the runtime repo having build failures related to RS1038: Compiler extensions should be implemented in assemblies with compiler-provided references. The warnings looks valid and needs a proper fix, for now they are suppressed.

Sample log:

warning RS1038: This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably.

Related to #87768
CC @jkoritzinsky

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions