-
Notifications
You must be signed in to change notification settings - Fork 256
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
NuGet v3 should honor developmentDependency=true in nuspec file #520
Comments
This is all it took for nuproj to behave correctly.
@emgarten note this for the uap work - need to be translated (I think the feature is supported in nuget.config already) |
userInstalled="true"? |
@davidfowl that's a half baked idea that got in, it is pretty much a useless to mimic transitive. |
I've noticed that userInstalled is always set to true even when it was brought in by another package. So ya, is that going away or should I file a bug for that too? |
It's a fail. But we are not touching it for now. Feel free to file |
Done #523 |
Re-opened as follow up item for UWP |
We only need to consider this when we start packaging
So this only applies to implementing |
This still doesn't work for packages.config scenarios. My repro is with NuGet 3.0.60605.535 and D14Rel 23004.00
It creates a package.config file that is missing the |
@AArnott, looks like you are using the VSIX from the dev branch and the fix was not in it yet, due to recent build issues. Once we update the VSIX of dev branch, you should see the fix. If you install latest NuGet from 3.0-rtm branch now, the issue is fixed. |
reassign to @anurse |
Re-opened as follow up item for UWP |
Reopening since this is still happening for project.json-based PCLs and CPS projects. Repro on VS015 Update 3 with NuGet 3.5.0 RTM:
/cc @emgarten |
I don't think we want to fix it in PJ, but we should fix it in package ref if needed |
Since package ref seems like it's going to be an MSBuild 15+ only feature, I think this must be fixed in PJ. There's very little chance that NuGetizer can work properly if there's no support for this. /cc @mhutch I'm happy to send a PR that fixes it if someone points me in the right direction. |
/cc @migueldeicaza this is a blocker for proper NuGetizer support on VS2015. |
Solved in NuGetizer by allowing easy removal of inferred package references. |
@kzu Just for my understanding here, there is nothing "wrong" with having a developmentDependency tacked on to the produced package except that its extra baggage right? I assume that it would be mostly harmless unless a brought in dev dep conflicted with a build environment for some reason? |
@bbowman think about something like GitInfo/GitVersion: why would you want that to propagate? The fact that you are using it for versioning your assemblies shouldn't dictate what your package consumers use for versioning theirs |
When a nuspec file has this tag:
Installing that package should cause a similar attribute to be added to the packages.config file. But when I run this command
to install a package with that tag, I get this in my packages.config file
The text was updated successfully, but these errors were encountered: