-
Notifications
You must be signed in to change notification settings - Fork 772
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
Dependancy conflicts in Microsoft packages between redis and redis.strongname #2068
Comments
aspnet/Announcements#322 |
Super, that is good to know. A note to that affect would be very handy in the description on nuget - https://www.nuget.org/packages/Microsoft.Extensions.Caching.Redis |
We'll use the deprecation feature in NuGet to do this when it's available: NuGet/Home#2867 Updating the description on NuGet requires shipping an entirely new version which seems unhelpful as it will make users think a new version is available when it's just a description update. |
Hmm, I see your dilemma. A depreciation feature is sorely needed on NuGet, especially considering if you search NuGet for "Microsoft Caching Redis" the depreciated Microsoft.Extensions.Caching.Redis comes up ahead of Microsoft.Extensions.Caching.StackExchangeRedis in the search results. I wonder how many people like myself have installed it with no idea that it has been replaced. |
I've a similar problem. My project was already using
Any ideas how can I workaround this? |
If you are able to update your usage to the newer If you can't update that, you should stick with |
I wasn't using One possible solution that I've found was to add the following to my <Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">
<ItemGroup>
<ReferencePath Condition="'%(FileName)' == 'StackExchange.Redis.StrongName'">
<Aliases>signed</Aliases>
</ReferencePath>
</ItemGroup>
</Target> Although that seems quite hacky, it does the trick for now. |
The same would generally apply to In general, the problem is crossing these two streams. In ASP.NET Core 2.1 and 2.2, the So it's a matter of choice, you have three options:
|
Thank you so much, @anurse ! This is a very detailed and useful answer. I think I'll go with the second option, I need to ask my team first, though. I'll let you know how it goes. |
It looks like @anurse does that mean we need to expand out all the dependencies in Should the readme be updated to reflect that users shouldn't follow https://github.com/aspnet/Extensions#get-started as that adds |
Hi everyone, updates on this: we've replaced the dependency on I did have to update an unrelated dependency on Thanks for all the pointers! |
Unless you've subscribed to the 'Announcements' (which I have now), the average developer would not know that they should be moving to the new package.....maybe the .NET team should consider marking the methods in |
As part of the migration of components from dotnet/extensions to dotnet/runtime (aspnet/Announcements#411) we will be bulk closing some of the older issues. If you are still interested in having this issue addressed, just comment and the issue will be automatically reactivated (even if you aren't the author). When you do that, I'll page the team to come take a look. If you've moved on or workaround the issue and no longer need this change, just ignore this and the issue will be closed in 7 days. If you know that the issue affects a package that has moved to a different repo, please consider re-opening the issue in that repo. If you're unsure, that's OK, someone from the team can help! |
I have an asp net core app with a few Microsoft packages.
Microsoft.AspNetCore.DataProtection.StackExchangeRedis depends on StackExchange.Redis
Microsoft.Extensions.Caching.Redis depends on StackExchange.Redis.StrongName
Whenever I try and reference anything in the StackExchange.Redis namespace it causes a CS0433 error.
Can you release a version of Microsoft.Extensions.Caching.Redis referencing StackExchange.Redis >= 2.0 so it plays nice with other Microsoft packages. Even a prerelease would be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: