You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Re-design how to get "type: platform" information in MSBuild #17
In order to tell if an application is 'portable' or not, we need to get whether a dependency is marked as "type: platform", and which dependency it is.
However, that information is not available in the project.lock.json file. See NuGet/Home#2695.
Once NuGet provides that info in the project.lock.json file, we should be able to remove the TODOs in our MSBuild Tasks that need this information.
Instead of relying on NuGet's "type: platform", the new idea is to use an MSBuild property to signify which dependency is to be considered the "platform" dependency.
There will be an MSBuild property we'll call MicrosoftNETCorePlatformPackage for now (named TBD). This property will have the name of the dependency to treat as the "platform" dependency. The .NET Core tools will look at this property when it needs to get the name of the "platform" dependency for use in determining what dependencies to trim out in portable apps.
If a NuGet package wants to be considered a “platform” package, it can create a “build/TFM/MyPackageId.props” file in its nupkg that looks something like the following:
changed the title [-]Need to get "type: platform" information from the project.lock.json file[/-][+]Re-design how to get "type: platform" information in MSBuild[/+]on Sep 19, 2016
Activity
eerhardt commentedon Sep 9, 2016
Instead of relying on NuGet's "type: platform", the new idea is to use an MSBuild property to signify which dependency is to be considered the "platform" dependency.
There will be an MSBuild property we'll call
MicrosoftNETCorePlatformPackagefor now (named TBD). This property will have the name of the dependency to treat as the "platform" dependency. The .NET Core tools will look at this property when it needs to get the name of the "platform" dependency for use in determining what dependencies to trim out in portable apps.If a NuGet package wants to be considered a “platform” package, it can create a “build/TFM/MyPackageId.props” file in its nupkg that looks something like the following:
This way, users just need to reference the package, and it will automatically be used as the platform dependency.
If a user wants to manually set which package should be the platform dependency, they can set this property directly in their project.
[-]Need to get "type: platform" information from the project.lock.json file[/-][+]Re-design how to get "type: platform" information in MSBuild[/+]Merge pull request dotnet#17 from aspnet/joeloff/signing
Merge pull request dotnet#17 from rainersigwald/some-links
Apply Round 2 code review feedback
Apply Round 3 code review feedback