Skip to content

Conversation

@adityapatwardhan
Copy link
Member

Since .Net Core 2.0, the api sets were moved to a nuget package. Adding a package reference for "Microsoft.NETCore.Windows.ApiSets" gets the required binaries for the Win7 package.

Fixes: #3747

<PackageReference Include="System.Security.Permissions" Version="4.4.0-preview3-25423-02" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.4.0-preview3-25423-02" />
<PackageReference Include="Microsoft.Management.Infrastructure" Version="1.0.0-alpha*" />
<PackageReference Include="Microsoft.NETCore.Windows.ApiSets" Version="1.0.1" />
Copy link
Member

Choose a reason for hiding this comment

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

Please move this reference to the "SDK.csporj". The packages that are not explicitly depended on by projects are put there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed. Makes sense.

@daxian-dbw
Copy link
Member

Have you tried if this works on Win7? This package seems to contain nothing and has no dependencies too.

@adityapatwardhan
Copy link
Member Author

Yes, I have tried it on Win7 SP1. It pulls in more api*.dll binaries with a dotnet publish.

image

@mirichmo mirichmo self-assigned this Aug 1, 2017
@adityapatwardhan
Copy link
Member Author

@mirichmo Can this be merged? This would be a good addition for beta.5.

@daxian-dbw
Copy link
Member

@adityapatwardhan please resubmit the PR target the release branch. Jason merged a PR that might be risky for the release, so we cannot rebase on master now.

@adityapatwardhan
Copy link
Member Author

Closing this PR and opening a new one for release branch.

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.

4 participants