aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Nuget cannot find newer dependency

Open gisek opened this issue 11 years ago • 8 comments

I'm not sure if this is the right place to report this bug, but look what I found.

I've just created a new project in ASP 5 MVC 6 beta8 and a compatible class library for tests. The problem occurs in this new "Web Class Library" project that I intended to use for tests. I also created a normal Class Library, installed the dependencies above with and gave it a try. Normal Class Library project built fine.

Here you've got a sample (ClassLibrary1 build fails, ClassLibrary2 build succeeds) https://github.com/gisek/NugetBug

And here is a SO question I asked at first. http://stackoverflow.com/questions/33324660/nuget-cannot-find-newer-dependency

gisek avatar Oct 25 '15 10:10 gisek

I encountered the exact same issue. Any thoughts about this?

asik avatar Dec 13 '15 23:12 asik

http://stackoverflow.com/a/34579963/672018

This is the temporary solution. It may help in fixing the bug.

gisek avatar Jan 09 '16 21:01 gisek

This problem is painful. Was hard to find and even worse to fix (with the workaround above). Any update on this?

davidpeden3 avatar Feb 25 '16 20:02 davidpeden3

Not sure if this is a problem with AutoFixture.AutoMoq or dnu restore/build. Cross referencing the issues:

https://github.com/AutoFixture/AutoFixture/issues/541

davidpeden3 avatar Mar 07 '16 18:03 davidpeden3

Pretty sure this issue can be closed. I believe the problem was in the .nuspec file of AutoFixture. The learning here is that dependencies in project.json are case-sensitive.

davidpeden3 avatar Mar 07 '16 21:03 davidpeden3

@davidpeden3 If it's case-sensitive... it should tell you that the package cannot be found.

If it's not case-sensitive, it should take the package anyway.

My thought is that since the Gallery isn't accepting package with the same name (but different case), then it's case insensitive and should be handled properly. It should install the package.

/cc @Eilon

MaximRouiller avatar Mar 08 '16 13:03 MaximRouiller

The package names are effectively case sensitive, but there are parts of NuGet that sometimes relax some of the rules.

@yishaigalatzer would know better the current behavior.

Eilon avatar Apr 20 '16 21:04 Eilon

This issue is being closed because it has not been updated in 3 months.

We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.

aspnet-hello avatar Dec 31 '17 20:12 aspnet-hello