From 4e648ebef1eacbab36a8786e7b2f847170b1fe02 Mon Sep 17 00:00:00 2001 From: Juan Renato Urrea Ortiz Date: Mon, 22 Dec 2025 16:08:53 -0800 Subject: [PATCH] patched system utils --- CSM Foundation Core/CHANGELOG.md | 12 ++++++++++++ CSM Foundation Core/CSM Foundation Core.csproj | 2 +- CSM Foundation Core/Core/Utils/SystemUtils.cs | 7 +++++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CSM Foundation Core/CHANGELOG.md b/CSM Foundation Core/CHANGELOG.md index 623208e..6c95b02 100644 --- a/CSM Foundation Core/CHANGELOG.md +++ b/CSM Foundation Core/CHANGELOG.md @@ -1,5 +1,17 @@ # CSM Foundation Core CHANGELOG +## [2.1.0] - 22.12-2025 + +### Changed + +- Changed a SystemUtils method [GetVar] to allow env context target. + +#### Dependencies + +| Package | Previous Version | New Version | +|:----------------------------------------|:----------------:|:---------------:| +| | | | + ## [2.0.0] - 24.11-2025 ### Changed diff --git a/CSM Foundation Core/CSM Foundation Core.csproj b/CSM Foundation Core/CSM Foundation Core.csproj index 2da1ae3..a91a6c0 100644 --- a/CSM Foundation Core/CSM Foundation Core.csproj +++ b/CSM Foundation Core/CSM Foundation Core.csproj @@ -4,7 +4,7 @@ net8.0 CSM_Foundation_Core CSM.Foundation.Core - 2.0.0 + 2.1.0 Renato Urrea Cosmos (CSM) https://github.com/Cosmos-CSM/csm_foundation_core diff --git a/CSM Foundation Core/Core/Utils/SystemUtils.cs b/CSM Foundation Core/Core/Utils/SystemUtils.cs index 1168dd4..f723533 100644 --- a/CSM Foundation Core/Core/Utils/SystemUtils.cs +++ b/CSM Foundation Core/Core/Utils/SystemUtils.cs @@ -67,8 +67,11 @@ public static class SystemUtils { /// /// Variable key. /// - public static string? GetVar(string varKey) { - string? var = Environment.GetEnvironmentVariable(varKey); + /// + /// Variable context target. + /// + public static string? GetVar(string varKey, EnvironmentVariableTarget target = EnvironmentVariableTarget.Process) { + string? var = Environment.GetEnvironmentVariable(varKey, target); return var; }