Skip to content

Instantly share code, notes, and snippets.

@tebeco
Created September 1, 2018 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tebeco/fdf6817864b78b470d729083196100d6 to your computer and use it in GitHub Desktop.
Save tebeco/fdf6817864b78b470d729083196100d6 to your computer and use it in GitHub Desktop.
Enable User-secrets in Vs2017 without editing code or .gitignore or whatever
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<UserSecretsId>Foobar</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<Content Include="$(AppData)\Microsoft\UserSecrets\$(UserSecretsId)\secrets.json" Link="secrets.json" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment