Skip to content

Conversation

@am11
Copy link
Member

@am11 am11 commented Aug 16, 2022

Use shared version of System.Reflection.Metadata in HostModel. It is compatible with netstandard2.0.

@ghost ghost added area-HostModel Microsoft.NET.HostModel issues community-contribution Indicates that the PR has been added by a community member labels Aug 16, 2022
@ghost
Copy link

ghost commented Aug 16, 2022

Tagging subscribers to this area: @vitek-karas, @agocke
See info in area-owners.md if you want to be subscribed.

Issue Details
  • Use shared version of System.Reflection.Metadata in HostModel. It is compatible with netstandard2.0.
  • Update shared version of System.Reflection.Metadata.
  • Add System.Reflection.Metadata in auto update list.
Author: am11
Assignees: -
Labels:

area-HostModel

Milestone: -

<!-- Installer dependencies -->
<MicrosoftNETCoreAppRuntimewinx64Version>7.0.0-rc.1.22414.6</MicrosoftNETCoreAppRuntimewinx64Version>
<MicrosoftNETCoreDotNetHostVersion>7.0.0-rc.1.22414.6</MicrosoftNETCoreDotNetHostVersion>
<MicrosoftNETCoreDotNetHostPolicyVersion>7.0.0-rc.1.22414.6</MicrosoftNETCoreDotNetHostPolicyVersion>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are unused and removed by #73095, but inadvertently undone by #72934.

@am11 am11 marked this pull request as ready for review August 16, 2022 15:58
@am11 am11 marked this pull request as draft August 16, 2022 16:26
Some tests are failing due to the indirect dependencies on S.C.I.
@am11 am11 marked this pull request as ready for review August 16, 2022 19:29
@am11 am11 requested review from VSadov and elinor-fung August 16, 2022 19:29

<ItemGroup>
<PackageReference Include="System.Reflection.Metadata" Version="1.8.0" />
<PackageReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataVersion)" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to ensure that we're matching the version of System.Reflection.Metadata that is in the SDK, as version mismatches can cause significant issues when running on the Full Framework version of MSBuild.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we can update to 6.0.0 (the current value of SystemReflectionMetadataVersion) as it's the same as the sdk's version.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I first tested updating SystemReflectionMetadataVersion to 7.0 preview7, but ILCompiler.Build.Tasks.csproj requirement is that we keep SystemCollectionsImmutableVersion and SystemReflectionMetadataVersion in sync. Updating System.Collections.Immutable to 7.0 preview7 was failing Pri0 tests (XUnitWrapperGenerator was unable to load S.C.I among other things), so I reverted that change.

@jkoritzinsky jkoritzinsky merged commit 7e4b3c1 into dotnet:main Aug 16, 2022
@am11 am11 deleted the feature/hostmodel/update-dependencies branch August 16, 2022 23:34
MichalStrehovsky added a commit to MichalStrehovsky/runtime that referenced this pull request Aug 18, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-HostModel Microsoft.NET.HostModel issues community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants