-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Can't install Redis-64 NuGet package with NuGet 3.1 #280
Comments
Hi @breyed, |
The same error occurs whether I run from the Package Manager Console or the GUI. |
@breyed I don't have a machine with VS2015 yet (working on it) in the meanwhile can you please explain to me what you need to achieve adding Redis to the VS solution so that I might find a workaround to unblock your work? |
I have a workaround for now. I dropped a copy of the redis .exe into the solution, rather than use the NuGet package. It's much less elegant, though. Ideally, there is some way to add a package at the solution level that I didn't notice. This seems unlikely, however. I had the package there before I upgraded. Then just before upgrading, I wiped my workspace and did a fresh get from source control (so there was a reference to the package, but not the package itself). When I built, the NuGet 3.1 package restore seemed to ignore the The next best option would be to make the package project-friendly - somehow tell NuGet that it's compatible with any .NET version, or .NET 4.x, or whatever works. I don't know how to do that off hand, though. Looking at some other NuGet packages, it seemed to be inferred from the DLLs. I hope that's not the only way. It would be a shame to have to add a dummy DLL and have it be referenced by a project just to make NuGet happy. |
Perhaps the right answer is to deprecate the Redis-64 package and aim towards NPM instead. The new model in VS2015/ASP.NET5 is this:
Redis best fits into the NPM bucket. It's similar to a web server, since it is a run-time, not design-time binary. |
Redis-64 is a solution level nuget package and Solution-level packages were deprecated since Nuget 3.0 and VS 2015 (NuGet/Home#522). It's also impossible to install this package on a csharp project because of this. Why do I need to install it ? In my case, it's just because my project contains integration tests relying on a local redis server. Distributing redis-64 via a nuget package that we can't install via nuget is not pertinent for me. Opencover has the same issue (OpenCover/opencover#315), you can use this fix for redis-64 |
Hi @cybermaxs, |
Hi @enricogior, I will be happy to contribute but correct me if I'm wrong, all the nuget stuff is not included in this repo or not visible. |
@cybermaxs
The script to sign the binaries is not included in the repo, so don't worry about it. |
@enricogior Ok, the fix is quite simple and I've submitted a PR |
@cybermaxs, |
@cybermaxs, |
Great news. Looking forward to the updated NuGet package. |
…get 3). Add redis-server.exe to tests project until MSOpenTech get around to releasing an updated nuget package with fix included. See microsoftarchive/redis#280.
@breyed, @cybermaxs |
The Redis-64 package doesn't work on VS2015 with NuGet 3.1.60724.766. The problem seems to be that this version of NuGet doesn't support solution-level packages. As a workaround, I tried installing Redis-64 on a project, but it fails with this error:
Similar errors occurs for any .NET Framework version that the project is configured for.
The text was updated successfully, but these errors were encountered: