-
Notifications
You must be signed in to change notification settings - Fork 907
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
When specific nuget version is needed by a package it is the chocolatey version that is used #194
Comments
Interesting.... This is due to an addition to the nuspec file here: And Chocolatey is reporting it's own version number, not the version number of the underlying nuget.core engine. Is there a specific reason that you are installing a nuget package using Chocolatey though? Chocolatey is intended for installing applications, not DLL's hosted on nuget.org. |
I wanted to install the xunit console runner v2 which is not available right now on chocolatey. |
Ah, I see. We will have to wait and see what @ferventcoder's thoughts on this one are, as I don't have any good suggestions. |
Wow, that's pretty messed up that it doesn't check nuget's version... only the client caller. I wonder if there is a way to ignore that. |
Bug in NuGet that is, but we need to workaround it. |
I am seeing this in 0.9.9.6, but not when I run the latest stable code. Not sure what the difference is, perhaps debug/release. |
http://nuget.codeplex.com/SourceControl/latest#src/Core/PackageWalker/PackageWalker.cs : http://nuget.codeplex.com/SourceControl/latest#src/Core/Packages/Constants.cs |
The difference is, once Nuget.Core is ILMerged in, the version of the assembly is switched over to Chocolatey's assembly version. |
Excellent, thanks! |
Still need to tell NuGet not to care about that. |
This is fixed and will be released with 0.9.9.7. |
Vendoring NuGet.Core allows us to take advantage of our own fixes to the provider. There are things that have been wanted for awhile that don't have a workaround to change the setting. - GH-290 - packages no longer have a restriction on content folders that produces the "External packages cannot depend on packages that target projects". I'd like to call it a bug, and for Chocolatey it certainly is. - GH-194 - Fix minimum NuGet client version reports Chocolatey version instead of NuGet's version, which is fine for packages on Chocolatey, but the ones on NuGet usually have this filled in, which makes them impossible to install with choco. - GH-205 - Enhance the nuspec - first wave. Add the most oftenly requested url for the nuspec, the packageSourceUrl and several other urls plus add in replaces, provides and conflicts as placeholders for now.
If you don't set it specifically, ILMerge will produce a different version of the IPackage value.
Sorry I need to reopen this ticket.
So please tell me how to solve it. |
I was trying to update xunit with the following command:
And I am getting this result:
Here are the logs.
The version of Powershell is:
Sorry if this is a duplicate, I haven't found any related issues.
The text was updated successfully, but these errors were encountered: