-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
Consider adding developmentDependency to nuspec for Cake.Common #895
Comments
Cool, sounds like a good idea to me 👍 |
Great, I'll spin up a PR |
It turns out |
@daveaglick The dependencies for Cake.Common are specified in the nuspec directly and not via code. |
@patriksvensson Great - that'll make it super easy to add the flag for Should probably still add to |
@daveaglick Absolutely! Great initiative! |
@daveaglick When doing this you should also specify <?xml version="1.0"?>
<package>
<metadata minClientVersion="2.8">
<developmentDependency>true</developmentDependency>
</metadata>
</package> |
@gitfool Hmm - good point. That might be a problem though. Do we necessarily want to limit addin developers to having a NuGet client >= 2.8? Maybe that's reasonable, I'm not sure. What would happen if an earlier version client found this unsupported element as a child of |
@daveaglick I can't answer those questions, sorry; not without testing it out for myself that is. If requiring NuGet client 2.8 is acceptable, then you can simply add the attribute. FWIW, 2.8 came out in January 2014 (http://docs.nuget.org/release-notes/nuget-2.8). @devlead @patriksvensson @gep13 thoughts? |
@daveaglick @gitfool I'm ok with 2.8 requirement, the older versions aren't even downloadable anymore on nuget.org @patriksvensson @gep13 do you agree? |
@gitfool Just submitted another PR to add it. I was going to go ahead and test the behavior of pre-2.8 clients, but as @devlead point out, you can't even download them anymore. Figured that was as good a signal as any that it was okay to exclude them. Especially since using |
👍 |
This flag was introduced in 2.8 for .nuspec files and indicates that the package is intended to support things like addons where you don't want to consuming package to take a dependency in it's own package. This seems appropriate for
Cake.Common
since it's primarily consumed by addins, which shouldn't actually take a NuGet dependency since that library will already be loaded by the engine and may cause conflicts if the addin takes a dependency and downloads a different version. The effect of this flag in the .nuspec is that NuGet will automatically add thedevelopmentDependency
flag to thepackages.config
of the consuming library.The text was updated successfully, but these errors were encountered: