From 2dd664df0a9a3f0dcd791551f58cc8041a62b325 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Thu, 14 Nov 2024 23:51:44 +0300 Subject: [PATCH] Add env variables config --- RhSolutions.AddIn/RhSolutions-AddIn.dna | 1 + RhSolutions.AddIn/RhSolutions.AddIn.csproj | 3 ++- RhSolutions.AddIn/Services/AddInConfiguration.cs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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 @@ + 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 @@ + - + 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() + .AddEnvironmentVariables("RHS_ADDIN__") .Build(); _rootKey = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\RhSolutions\RhSolutions-AddIn");