Skip to content

Compiler injects RefSafetyRulesAttribute into assemblies #3076

Open
@tlakollo

Description

@tlakollo

Starting from RC2 compiler injects the attribute System.Runtime.CompilerServices.RefSafetyRulesAttribute to identify the language version. Since it's embedded into all modules the Kept logic will fail all tests that don't have the SkipKeptMemberAttribute on them, since it doesn't expect the RefSafetyRulesAttribute nor the associated types in the modules.
Related to dotnet/runtime#76032

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions