Skip to content

Workaround breaking change to IObjectWriter - #2664

Merged
ViktorHofer merged 1 commit into
dotnet:masterfrom
ericstj:removeRuntimeJsonWriter
May 2, 2019
Merged

Workaround breaking change to IObjectWriter#2664
ViktorHofer merged 1 commit into
dotnet:masterfrom
ericstj:removeRuntimeJsonWriter

Conversation

@ericstj

@ericstj ericstj commented May 1, 2019

Copy link
Copy Markdown
Member

NuGet broke IObjectWriter by adding members. We cannot implement those
members since we cannot take a dependency on the new NuGet without breaking
existing consumers on 2.x SDKs.

Remove the workaround since the runtime.json NuGet's API generates is
functionally equivalent, and we don't need to be compatible with old NuGet
clients (EG: dnx) where it may not be.

NuGet broke IObjectWriter by adding members.  We cannot implement those
members since we cannot take a dependency on the new NuGet without breaking
existing consumers on 2.x SDKs.

Remove the workaround since the runtime.json NuGet's API generates is
functionally equivalent, and we don't need to be compatible with old NuGet
clients (EG: dnx) where it may not be.
@ericstj
ericstj requested review from ViktorHofer and safern May 1, 2019 23:32
}

/// <summary>
/// works around a bug in NuGet that writes an empty import array,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These differences used to matter when we were building packages that we wanted to work in older clients. We don't need that any more so I'm ok absorbing the change to the runtime.json files generated. I tested restoring our packages that contain this runtime.json format with the latest SDK.

@ViktorHofer

Copy link
Copy Markdown
Member

Do we have 2.x consumers at all? Who is using this package besides corefx and standard?

@ericstj

ericstj commented May 1, 2019

Copy link
Copy Markdown
Member Author

Do we have 2.x consumers at all? Who is using this package besides corefx and standard?

CoreCLR and core-setup too. I'm ok with accepting the diff in the runtime.json. For the most part these types of runtime.jsons are going away in the shipping product. They're being replaced with runtime packs. We're only using this to flow the transport packages. /cc @dagood

@ViktorHofer
ViktorHofer merged commit ea9b253 into dotnet:master May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants