Skip to content

IL2008: System.Diagnostics.FileVersionInfo: Could not resolve type 'System.SR'. #102303

Closed
@henning-krause

Description

@henning-krause

I'm trying to trim my application and get this warning:

resource ILLink.Substitutions.xml in System.Diagnostics.FileVersionInfo, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(5,6): warning IL2008: System.Diagnostics.FileVersionInfo: Could not resolve type 'System.SR'. 

It's unclear to me what the linker is complaining about and how I can fix this. There isn't even a hint to where I use FileVersionInfo. I can't find any reference to it in my solution, so it must be further down the call-stream.

It would be great if the ILLinker could pinpoint me to the source.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions