.Net Framework 4.5.1 and Kentor.OwinCookieSaver

UPDATE Oct 15th, 2020 by Nico Sabena (Auth0)

Auth0’s quickstarts and samples no longer use the Kentor.OwinCookieSaver package to work around the problem with cookies and Katana/OWIN. Instead, we are using the SystemWebCookieManager as a workaround recommended by Microsoft.
This pull request has additional context: [SDK-1672] Update Asp.Net OWIN quickstart to use SystemWebCookieManager by stevehobbsdev · Pull Request #29 · auth0-samples/auth0-aspnet-owin-mvc-samples · GitHub

Original message

I am following the instructions for

When I try it install Kentor.OwinCookieSaver I get

Install-Package : Could not install package ‘Kentor.OwinCookieSaver 1.1.1’. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.5.1’, but the package does not
contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1

  • Install-Package Kentor.OwinCookieSaver
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

Is there an alternative?

Hi @mark.perry

Can you try targetting 4.5.2 instead?

Mark confirmed through email that this successfully resolved the issue.

Thanks!