Skip to content

IntrinsicsInSystemPrivateCoreLibAnalyzer throwing ArgumentException #90356

Closed
@ericstj

Description

@ericstj

Description

When building System.Private.CoreLib I see the diagnostic:

error AD0001: Analyzer 'IntrinsicsInSystemPrivateCoreLib.IntrinsicsInSystemPrivateCoreLibAnalyzer' threw an excep
tion of type 'System.ArgumentException' with message 'Syntax node is not within syntax tree'.

I'll suppress this when enabling AD0001 as warning. This issue will track fixing that analyzer and removing the warning suppression.

Reproduction Steps

Remove AD0001 from System.Private.Corelib.csproj and build it.

Expected behavior

Builds without warning.

Actual behavior

Warning as above.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructure-coreclrin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions