3

Visual Studio claims it cannot find the PersistKeysToRedis method described here: https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.dataprotection.redisdataprotectionbuilderextensions.persistkeystoredis?view=aspnetcore-2.1

I am using dotnet core 2.1.302. I have the Microsoft.AspNetCore.All NuGet package installed, which as far as I can tell is all I need. I have most of the other methods described in that namespace as the following image shows:

PersistKeysToRedis missing

I have the Microsoft.AspNetCore.DataProtection namespace in my using statements.

So why do I not see this method? It's late on a Friday so maybe I'm missing something...

Alec
  • 946
  • 1
  • 11
  • 22

1 Answers1

8

Your link says PersistKeysToRedis is in assembly Microsoft.AspNetCore.DataProtection.Redis. Microsoft.AspNetCore.All does not have a reference to this assembly so you need to add it manually.

Severius5
  • 538
  • 1
  • 4
  • 8
  • You are correct. I needed to add this package: https://www.nuget.org/packages/Microsoft.AspNetCore.DataProtection.Redis/ – Alec Jul 15 '18 at 02:15
  • 3
    Note this package is now https://www.nuget.org/packages/Microsoft.AspNetCore.DataProtection.StackExchangeRedis – Quango Jun 11 '20 at 11:22