Search code examples
dotnet-cli.net-core

Ubuntu dotnet user-secrets


I installed dotent core on Ubuntu v16.04. Problem is when I try to use dotnet user-secrets it says: No executable found matching command "dotnet-user-secrets"

dotnet core version: 1.0.0-preview2-003131

dotnet screenshot:enter image description here


Solution

  • To use the Secret Manager in .NET Core, you will have to install it to the project:

    1. Add the line Microsoft.Extensions.SecretManager.Tools to the tools section of your project.json
    2. Run dotnet restore

    You can find more information about it in the official .NET documentation.