How work with Azure Redis Cache in VS 2022

Salam 26 Reputation points
2022-06-26T13:57:35.347+00:00

Hi, can somebody point me to tutorials or references on how to work with Azure Redis cache in Visual studio 2022. All examples on the net or MS docs refer to VS2019 like https://github.com/Azure-Samples/azure-cache-redis-samples which does not work in VS2022. Always reference errors or nuget pacjkages cant be restored.
Thanks in advance.
All details are available on the issue I raised at
https://developercommunity.visualstudio.com/t/How-work-with-Azure-Redis-Cache-in-VS-20/10074796?port=1025&fsid=50bd66e6-35e4-4f41-ac4b-d3af5ebbb23b&entry=myfeedback&ref=native&refTime=1656251616644&refUserId=29563d4e-61d9-6f27-9a4a-3aef3276668f&viewtype=all

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
305 questions
Developer technologies .NET Other
Developer technologies Visual Studio Other
{count} votes

2 answers

Sort by: Most helpful
  1. satya karki 996 Reputation points MVP
    2022-06-27T07:29:54.277+00:00

    Hi, you can check the below article. Maybe it will be helpful for you.

    https://www.c-sharpcorner.com/article/easily-use-redis-cache-in-asp-net-6-0-web-api/

    0 comments No comments

  2. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2022-07-05T18:44:45.83+00:00

    Hi @Salam Thank you for posting your question on Microsoft Q&A and for using Azure services.
    I see a suggestion to restore the NuGet packages (the yellow bar in your screenshot). Did you try running this?
    You can also execute the restore by right-clicking the name of the solution and clicking "Restore NuGet Packages" Please let me know if this works.

    Regards,
    Oury


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.