Open ericstj opened 2 months ago
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.
I've deleted the S.R.Metadata package reference in ILCompiler.TypeSystem in #107343.
dotnet-pgo still doesn't work because it depends on ILCompiler.Reflection.ReadyToRun and that one does need a S.R.Metadata package reference because it's netstandard2.0 for ILSpy sake. If we could make it $(NetCoreAppToolCurrent)
, the problem would go away but that would break ILSpy. I don't know enough nuget-fu to resolve this. Reopening and moving to crossgen2 area path since this is not in a component shared with nativeaot anymore.
Similar to https://github.com/dotnet/runtime/issues/106740
Discovered in https://github.com/dotnet/runtime/pull/106873#issuecomment-2310658849
ILCompiler projects are referencing a package version of System.Reflection.Metdata and copying that to the output and running it during the build, without ensuring that the runtime they are running against supports that version of the package.