-
Notifications
You must be signed in to change notification settings - Fork 12
Consider removing this component completely #50
Comments
@Eilon @BrennanConroy I think this worth considering for 2.0. |
It seems to have a ton of downloads in even just the last 6 weeks - over 1.2 million: http://www.nuget.org/stats/packages/Microsoft.Extensions.PlatformAbstractions?groupby=Version Is it just because we have dependencies on it from core components? If so, what are those components? |
Lets just never ship an update. As @natemcmaster says, it's been replaced by the BCL APIs which are also in netstandard. |
Yes, I think this is more likely the case. It is used in Scaffolding, Hosting, WebSockets, MvcPrecompilation, SignalR, Logging, Localization, and probably a few others I missed in my quick GitHub search. |
Is that mean, there's no code change needed in this repo?!! |
@anurse Let's sync up later on this one. |
Tracking for removal: Branches and changes made:
Issues Identified
|
First major problem is going to be /cc @davidfowl @Eilon @muratg |
So that's why I asked before, |
IMO we should take this opportunity to get back on the "path of righteousness". netstandard1.3 does not accurately reflect runtime requirements for this API. Background: reflecting out Assembly.GetEntryAssembly was introduced as a workaround during the 1.0.0 RC1 release. The API became available in 1.0.0-rc2 but we never updated our code. (see https://github.com/dotnet/corefx/issues/4146) |
@natemcmaster are you suggesting we bump up certain projects from netstandard1.3 to 1.5? If so, which ones, and what down-stream ones would also need to get bumped up? We're not opposed to raising the min-reqs, but it's also not as simple as just flipping some bits, because there's obvious customer impact on this. |
Yes.
Not sure. It all depends on which libraries use GetEntryAssembly. I expect impact would be minimal. The netstandard1.3 binaries are used on .NET Core like 99.9% of the time. Netstandard1.3 binaries are technically API compatible with other runtimes -- like Mono, Xamarin, .NET Framework 4.6, UWP, and WP -- but very few customers do that. .NET Framework consumers end up with the net451 binary, and very few people are running web servers on UWP, Xamarin, etc. |
netstandard1.5 is .NET 4.6.2, but interestingly, netstandard2.0 is .NET 4.6.1. So if we drop netstandard1.3 we could technically get away with dropping support for only 4.6.0. But, either way, that's a reduction in supported platforms, so I think we would need @DamianEdwards to be on board with that. @anurse - can you produce a list of packages that would need to bump up so that we can consider what to do with their supported netstandard's? |
Yeah, I can work on it. |
Packages we'd need to update:
|
Our current plan (according to @davidfowl and I):
Cross-repo changes
|
@anurse hey, Is this package also supposed to be removed in 2.0? Or still as dependency in e.g. MVC? |
We're removing all references to both packages in our code. ASP.NET doesn't own the |
In build 24566, there are now no references to |
@anurse safe to close this now? Or anything else pending? |
YAYY! |
Should we delete files on |
It would be nice to make this repo as obsolete |
However, I am unable to find the I solved the issue by using Is it expected that I cannot access the |
The API provided in this package has been whittled down so much that it's no longer really useful as a standalone assembly. We can simplify our dependency graph by using .NET APIs such as AppContext.BaseDirectory and System.Runtime.InteropServices.RuntimeInformation, or making this a .Sources package instead.
The text was updated successfully, but these errors were encountered: