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

前端 未结 9 1364
醉梦人生
醉梦人生 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:42

    Additionally to the answers posted here, if you want a link to your own secrets.json file in your project, you can add the following code to an ItemGroup in your project file:

    
    

提交回复
热议问题