Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Custom metadata not retained from NuSpecTemplate #281

Open
heaths opened this issue Mar 4, 2017 · 8 comments
Open

Custom metadata not retained from NuSpecTemplate #281

heaths opened this issue Mar 4, 2017 · 8 comments

Comments

@heaths
Copy link
Contributor

heaths commented Mar 4, 2017

To build a package that supports Chocolatey's guidelines and recommendations, I need to add some package metadata. I see from the targets and task source you can add a $(NuSpecTemplate) pointing to a .nuspec file, but custom metadata is not retained. Seems to be no other way to add custom metadata to projects.

@AArnott
Copy link
Contributor

AArnott commented Mar 4, 2017

If it's dropped, I wonder if it's nuget pack that drops it -- or the nuget OM in general.
But we can keep this active while it's true either way.

@heaths
Copy link
Contributor Author

heaths commented Mar 4, 2017

Digging into this more, it's a problem in NuGet.Packaging. They don't support custom metadata. Any fix would have to be on their side. I've opened NuGet/Home#4751.

@heaths
Copy link
Contributor Author

heaths commented Mar 4, 2017

If I did fix it on their side (have a few ideas), would you be open to taking a new version? I doubt they'd take a change on 2x but looks like they're already churning on 4.3.

@kovalikp
Copy link
Contributor

kovalikp commented Mar 4, 2017

Master branch is currently using quite old version of the Nuget (2.X something). I've made a branch some time ago trying to get full support of project.json files (including resolving dependencies), but never got to finish it. But as the 1st step, I did upgrade the NuGet packages to 3.5 in https://github.com/kovalikp/nuproj/tree/wip/json. I guess we should try first, how does NuProj behaves with latest version of NuGet packages.

@AArnott
Copy link
Contributor

AArnott commented Mar 4, 2017

Before investing too much, consider #282

@heaths
Copy link
Contributor Author

heaths commented Mar 5, 2017

Would have to see if they retain custom metadata.

@bbowman
Copy link

bbowman commented Mar 29, 2017

@kzu would love to know here as well.

@kzu
Copy link

kzu commented Jul 14, 2017

There isn't any API in NuGet that allows you to define custom metadata in the nuspec.

If you get such an API introduced there, NuGetizer will happily support it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants