Skip to content

ILLink analyzer crashes with MissingMethodException #123503

@jjonescz

Description

@jjonescz

Using ILLink analyzer on latest SDKs fails with MissingMethodException

CSC : error AD0001: Analyzer 'ILLink.RoslynAnalyzer.DynamicallyAccessedMembersAnalyzer' threw an exception of type 'System.MissingMethodException' with message 'Method not found: 'Microsoft.CodeAnalysis.IParameterSymbol Microsoft.CodeAnalysis.ITypeSymbol.get_ExtensionParameter()'.'.

That's because it uses an API that was changed (that API was in preview): dotnet/roslyn#80230

(Note: the api was temporarily re-added to fix source build in dotnet/roslyn#80279 but then removed again recently in dotnet/roslyn#80281.)

Should be backported to 10.0.1xx probably otherwise users on newer VS would get errors with 10.0.1xx versions of the SDK I think.

Metadata

Metadata

Assignees

Labels

area-Tools-ILLink.NET linker development as well as trimming analyzers

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions