Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Remove System.Buffers package - #32096

Merged
safern merged 3 commits into
dotnet:masterfrom
safern:RemoveSBuffers
Sep 12, 2018
Merged

safern merged 3 commits into
dotnet:masterfrom
safern:RemoveSBuffers

Conversation

@safern

@safern safern commented Sep 4, 2018

Copy link
Copy Markdown
Member

Fixes: https://github.com/dotnet/corefx/issues/31776

Since API is frozen because this package is inbox in both netcoreapp and uap, we no longer need to build this package anymore. If we need to make changes to the package we can do it from the release branches.

cc: @weshaggard @ericstj

@karelz karelz added this to the 3.0 milestone Sep 6, 2018
$(PackageConfigurations);
uap;
netfx;
netstandard;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we make this netcoreapp and uap? Once this becomes part of netstandard vnext we will be forced to do that.

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.

I will try to make this netcoreapp and uap. There was a reference to this ref assembly that was preventing me from doing so, but I will figure it out.

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.

The reason why I made this netstandard was because System.IO.Pipelines references System.Buffers and now with this change IO.Pipelines ref is built for netstandard, should we wait until this becomes part of vnext to make this ref netcoreapp and uap? or should we just build Pipelines ref assembly for netcoreapp and uap?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lets keep it simple for now and stick with netstandard.

</PackageConfigurations>
<BuildConfigurations>
$(PackageConfigurations);
netstandard;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This now adds the netstandard2.0 configuration to the package which didn't exist before we should decide if we want to do that or not.

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.

The src already has a netstandard PackageConfiguration and since the ref was being built for ns1.3 it was alread ns2.0 supported. What configuration should we build it for instead?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think I'm OK with adding the netstandard2.0 configuration to the package. It is probably better that way anyhow because it helps eliminate some package dependencies.

@weshaggard weshaggard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other then my one comment about pipelines package the change looks good.

@safern

safern commented Sep 12, 2018

Copy link
Copy Markdown
Member Author

@bartonjs I added commit a5c4f14 to harvest S.S.C.Cng ns1.3 and ns1.4 implementation assets.

@weshaggard would you mind taking another look please?

<ItemGroup Condition="'$(TargetGroup)'=='netstandard1.3'">
<Compile Include="System\IO\Pipelines\ThreadPoolScheduler.netstandard1.3.cs" />
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)'=='netstandard'">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: above we are using TargetsNETCoreApp, should we use TargetNetStandard here too instead?

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.

The reason why we're using TargetsNETCoreApp is because it is used by both, netcoreapp2.1 and netcoreapp targetgroups, but here it is specific to netstandard. Since it is the only version of netstandard used I think it is better to leave it like is.

@bartonjs

Copy link
Copy Markdown
Member

@safern Are there runtimes where the current CNG package could be pulled in and netstandard1.3 or netstandard1.4 would be the best match? I'd be concerned that we'd then not be shipping bugfixes that we thought we were shipping.

I'd rather "not support" a lib than harvest it, personally.

@weshaggard

Copy link
Copy Markdown
Member

When we start harvesting it we are essentially moving it to servicing only mode so fixes will only come from the servicing branches. So as long as there aren't any live active platforms that expect fixes, which is generally the case for any NS less then 2 then I think we are good harvesting the assets.

@safern
safern merged commit b09c098 into dotnet:master Sep 12, 2018
@safern
safern deleted the RemoveSBuffers branch September 12, 2018 21:17
@jkotas jkotas mentioned this pull request Sep 12, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Remove System.Buffers package and harvest System.IO.Pipelines for ns1.3

* Run UpdateVSConfigurations

* Harvest Security.Cryptography.Cng ns1.3 and ns1.4 implementations


Commit migrated from dotnet/corefx@b09c098
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants