How to get “Manage User Secrets” in a .NET Core console-application?

前端 未结 9 1428
醉梦人生
醉梦人生 2020-12-28 12:07

When I create a new ASP .NET Core Web-Application, I can right-click the project in Visual Studio, and I see a context-menu entry called \"Manage User Secre

9条回答
  •  悲&欢浪女
    2020-12-28 12:43

    Manage User Secrets is available from the context menu of .NET Core Console projects (not just ASP.NET Core projects) since Visual Studio 2019 (verified in version 16.1.3), once you reference the Microsoft.Extensions.Configuration.UserSecrets NuGet.

提交回复
热议问题