Skip to content

Conversation

@pchaurasia14
Copy link
Contributor

@pchaurasia14 pchaurasia14 commented Aug 1, 2024

Pull in changes from #9465 and #9492 to support nrbf code for Preview7

Customer Impact

Customers using .NET 9 Preview 7 would continue to take in implicit dependency on BinaryFormatter nuget package.

Regression

No.

Testing

Local testing and compat-lab applications

Risk

Medium.

Microsoft Reviewers: Open in CodeFlow

cc - @adamsitnik , @ericstj

* install the System.Formats.Nrbf package

* switch to the new API

* remove unused methods

* remove everything related to parsing NRBF payloads and records that don't support writing

* try to fix and update the tests

* remove more unused code
WPF was depending on the package version of
System.Runtime.Serialization.Formatters but never shipping it.
�Instead WPF should depend on the built-in assembly version.
To do that we need to update the SDK version since WPF's vcxprojs don't
enable the nuget package targeting pack dotnet#9490
@pchaurasia14 pchaurasia14 requested review from a team as code owners August 1, 2024 19:04
@pchaurasia14 pchaurasia14 marked this pull request as draft August 1, 2024 19:04
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label Aug 1, 2024
<PackageReference Include="xunit.stafact" Version="$(XUnitStaFactPackageVersion)" />
<PackageReference Include="FluentAssertions" Version="$(FluentAssertionsVersion)" />
<PackageReference Include="System.Collections.Concurrent" Version="4.3.0" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="9.0.0-preview.7.24359.11 " />
Copy link
Member

Choose a reason for hiding this comment

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

This looks wrong. We shouldn't have hardcoded versions in the projects.

Copy link
Member

Choose a reason for hiding this comment

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

I see, that was fixed with fbff6e1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to keep the changes to minimum and pick only the changes that were introduced in the 2 original PRs.

@pchaurasia14
Copy link
Contributor Author

Closing in favor of #9507 .

@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants