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

Remove DependencyModel's dependency on PlatformAbstractions #5218

Merged
merged 2 commits into from
Mar 1, 2019

Conversation

eerhardt
Copy link
Member

We are planning on removing PlatformAbstractions. The first step is to remove the dependency on it in DependencyModel. The dependency isn't necessary.

Working towards #5213

@pranavkm
Copy link

@bricelam - looks like this https://github.com/aspnet/EntityFrameworkCore/blob/f38686a5974ab94463ccd68484e9133a13e7e13f/src/EFCore.Sqlite.Core/Infrastructure/SpatialiteLoader.cs#L15 code might be relying on the transitive reference to get to RuntimeEnvironment.

Copy link

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

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

Looks fairly straightforward.

@@ -39,6 +43,7 @@
<Otherwise>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.0.0" />
Copy link
Member

Choose a reason for hiding this comment

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

Why was this version selected (2.5 years old) -- because it supports older TFMs?

Copy link
Member Author

Choose a reason for hiding this comment

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

Both of these versions are what is used in PlatformAbstractions today, which we were getting through transitive dependencies:

https://www.nuget.org/packages/Microsoft.DotNet.PlatformAbstractions/3.0.0-preview-27324-5

System.AppContext (>= 4.1.0)
System.Collections (>= 4.0.11)
System.IO (>= 4.1.0)
System.IO.FileSystem (>= 4.0.1)
System.Reflection.TypeExtensions (>= 4.1.0)
System.Runtime.Extensions (>= 4.1.0)
System.Runtime.InteropServices (>= 4.1.0)
System.Runtime.InteropServices.RuntimeInformation (>= 4.0.0)

I am keeping these versions the same as they were before my change.

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' Or '$(TargetFramework)' == 'netstandard1.6' ">
<PackageReference Include="System.AppContext" Version="4.1.0" />
Copy link
Member

Choose a reason for hiding this comment

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

Again I assume these package versions were selected based on best fit.

@danmoseley
Copy link
Member

@eerhardt can you comment on @steveharter question about package version? Other stuff is resolved.

@eerhardt eerhardt merged commit e43465a into dotnet:master Mar 1, 2019
@eerhardt eerhardt deleted the RemovePADep branch March 1, 2019 17:46
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…ore-setup#5218)

* Remove DependencyModel's dependency on PlatformAbstractions

Working towards dotnet/core-setup#5213


Commit migrated from dotnet/core-setup@e43465a
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.

4 participants