Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where ASP.NET PackageReferences with implicit versions had incorrect PrivateAssets value #2581

Merged

Conversation

dsplaisted
Copy link
Member

In #2533, I set the PrivateAssets metadata for ASP.NET Core PackageReferences to true, when it should have been all. (This is what it was when the logic was in the web SDK: https://github.com/aspnet/websdk/blob/ee152187bf59ef13e214b8329773a81da66e5e47/src/Web/Microsoft.NET.Sdk.Web.Targets/Sdk.DefaultItems.targets#L132)

This would cause a failure if a project that didn't have an ASP.NET Core PackageReference referenced one that did. The .props file from the package which set the MicrosoftNETPlatformLibrary to the ASP.NET package would then flow, causing a failure in the referencing project's GenerateDepsFile task.

FYI @natemcmaster

Copy link
Contributor

@natemcmaster natemcmaster left a comment

Choose a reason for hiding this comment

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

Good catch.

@dsplaisted
Copy link
Member Author

See NuGet/Home#7399 which would add a warning for cases like this.

@Pilchie
Copy link
Member

Pilchie commented Oct 12, 2018

Is master the right branch here, or do we need it in an earlier release?

@dsplaisted dsplaisted changed the base branch from master to release/2.2.1xx October 12, 2018 22:24
@dsplaisted
Copy link
Member Author

@Pilchie Yes, I had the branch wrong. This should go into 2.2.1xx (and hence doesn't need to be approved for VS 15.9)

@dsplaisted
Copy link
Member Author

@dotnet-bot test OSX10.12 Release

@dsplaisted dsplaisted merged commit 5daa8a9 into dotnet:release/2.2.1xx Oct 15, 2018
wli3 pushed a commit that referenced this pull request Feb 7, 2020
…0190904.1 (#2581)

- Microsoft.NETCore.App - 5.0.0-alpha1.19454.1

Dependency coherency updates

- System.CodeDom - 5.0.0-alpha1.19453.11 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.ProtectedData - 5.0.0-alpha1.19453.11 (parent: Microsoft.NETCore.App)
- System.Text.Encoding.CodePages - 5.0.0-alpha1.19453.11 (parent: Microsoft.NETCore.App)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants