appsettings is now shared through the 'Secrets' project.
secrets are now expected inside a appsettings.secrets.json inside the 'Secrets' project.
This commit is contained in:
		| @@ -18,4 +18,8 @@ | ||||
|         <PackageReference Include="Winista.MimeDetect" Version="1.0.1" /> | ||||
|     </ItemGroup> | ||||
|  | ||||
|     <ItemGroup> | ||||
|       <ProjectReference Include="..\Secrets\Secrets.csproj" /> | ||||
|     </ItemGroup> | ||||
|  | ||||
| </Project> | ||||
|   | ||||
| @@ -20,6 +20,7 @@ namespace FarmmapsApi | ||||
|         { | ||||
|             IConfiguration config = new ConfigurationBuilder() | ||||
|                 .AddJsonFile("appsettings.json", false, true) | ||||
|                 .AddJsonFile("appsettings.secrets.json", false, true) | ||||
|                 .Build(); | ||||
|  | ||||
|             var configuration = config.Get<Configuration>(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user