File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class Client
1515
1616 public Client ( ) {
1717 var configuration = new ConfigurationBuilder ( ) .
18- AddJsonFile ( "config.json ") .
18+ AddEnvironmentVariables ( "MEDIUMSDK_ ") .
1919 Build ( ) ;
2020 _accessToken = configuration [ "AccessToken" ] ;
2121 _testPublicationId = configuration [ "TestPublicationId" ] ;
Original file line number Diff line number Diff line change 1010 <IsPackable >False</IsPackable >
1111 </PropertyGroup >
1212
13- <ItemGroup >
14- <None Update =" config.json" >
15- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
16- </None >
17- </ItemGroup >
18-
1913 <ItemGroup >
2014 <ProjectReference Include =" ..\Medium\Medium.csproj" />
2115 </ItemGroup >
2216
2317 <ItemGroup >
18+ <PackageReference Include =" Microsoft.Extensions.Configuration.EnvironmentVariables" Version =" 1.1.2" />
2419 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.3.0" />
2520 <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.2.0" />
2621 <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 1.1.2" />
27- <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 1.1.2" />
2822 <PackageReference Include =" xunit" Version =" 2.2.0" />
2923 </ItemGroup >
3024
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments