diff options
-rw-r--r-- | RhSolutions.AddIn/RhSolutions-AddIn.dna | 1 | ||||
-rw-r--r-- | RhSolutions.AddIn/RhSolutions.AddIn.csproj | 3 | ||||
-rw-r--r-- | RhSolutions.AddIn/Services/AddInConfiguration.cs | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/RhSolutions.AddIn/RhSolutions-AddIn.dna b/RhSolutions.AddIn/RhSolutions-AddIn.dna index 44b2e29..3effe6e 100644 --- a/RhSolutions.AddIn/RhSolutions-AddIn.dna +++ b/RhSolutions.AddIn/RhSolutions-AddIn.dna @@ -8,6 +8,7 @@ <Reference Path="Microsoft.Extensions.Caching.Memory.dll" Pack="true" /> <Reference Path="Microsoft.Extensions.Configuration.Abstractions.dll" Pack="true" /> <Reference Path="Microsoft.Extensions.Configuration.dll" Pack="true" /> + <Reference Path="Microsoft.Extensions.Configuration.EnvironmentVariables.dll" Pack="true" /> <Reference Path="Microsoft.Extensions.Configuration.FileExtensions.dll" Pack="true" /> <Reference Path="Microsoft.Extensions.Configuration.Json.dll" Pack="true" /> <Reference Path="Microsoft.Extensions.Configuration.UserSecrets.dll" Pack="true" /> diff --git a/RhSolutions.AddIn/RhSolutions.AddIn.csproj b/RhSolutions.AddIn/RhSolutions.AddIn.csproj index 67ef543..8fb161c 100644 --- a/RhSolutions.AddIn/RhSolutions.AddIn.csproj +++ b/RhSolutions.AddIn/RhSolutions.AddIn.csproj @@ -21,8 +21,9 @@ <PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> <PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" /> <PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" /> + <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" /> - <PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="9.0.0" /> + <PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" /> <PackageReference Include="netDxf" Version="2022.11.2" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> diff --git a/RhSolutions.AddIn/Services/AddInConfiguration.cs b/RhSolutions.AddIn/Services/AddInConfiguration.cs index 5fa4c1a..592ec15 100644 --- a/RhSolutions.AddIn/Services/AddInConfiguration.cs +++ b/RhSolutions.AddIn/Services/AddInConfiguration.cs @@ -22,6 +22,7 @@ public class AddInConfiguration : IAddInConfiguration { _configuration = new ConfigurationBuilder() .AddUserSecrets<RhSolutionsAddIn>() + .AddEnvironmentVariables("RHS_ADDIN__") .Build(); _rootKey = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\RhSolutions\RhSolutions-AddIn"); |