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

Support PackageType metadata #168

Merged
merged 3 commits into from
Oct 23, 2018
Merged

Support PackageType metadata #168

merged 3 commits into from
Oct 23, 2018

Conversation

iskiselev
Copy link
Contributor

@iskiselev iskiselev commented Oct 9, 2018

Implements NuGet/Home#7250
Package type metadata should have same format, as documented at
https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target
Example:

<PackageType>DotNetCliTool, 1.0.0.0;Dependency, 2.0.0.0</PackageType>

ParsePackageTypes function was taken (and modified) from https://github.com/NuGet/NuGet.Client/blob/9fe40c06ab14f77848dd8ebe3a8e5cdc912cf0e3/src/NuGet.Core/NuGet.Build.Tasks.Pack/PackTaskLogic.cs#L339

Package type metadata should have same format, as documented at
https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target
Example:
<PackageType>DotNetCliTool, 1.0.0.0;Dependency, 2.0.0.0</PackageType>
@kzu
Copy link
Contributor

kzu commented Oct 10, 2018

We'd need a new unit test to verify the new behavior.

Thanks!

@iskiselev
Copy link
Contributor Author

Unit tests added.

@kzu kzu merged commit 861f27c into NuGet:dev Oct 23, 2018
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.

2 participants