Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CSM Foundation Core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion CSM Foundation Core/CSM Foundation Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>CSM_Foundation_Core</RootNamespace>
<PackageId>CSM.Foundation.Core</PackageId>
<Version>2.0.0</Version>
<Version>2.1.0</Version>
<Authors>Renato Urrea</Authors>
<Company>Cosmos (CSM)</Company>
<RepositoryUrl>https://github.com/Cosmos-CSM/csm_foundation_core</RepositoryUrl>
Expand Down
7 changes: 5 additions & 2 deletions CSM Foundation Core/Core/Utils/SystemUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ public static class SystemUtils {
/// <param name="varKey">
/// Variable key.
/// </param>
public static string? GetVar(string varKey) {
string? var = Environment.GetEnvironmentVariable(varKey);
/// <param name="target">
/// Variable context target.
/// </param>
public static string? GetVar(string varKey, EnvironmentVariableTarget target = EnvironmentVariableTarget.Process) {
string? var = Environment.GetEnvironmentVariable(varKey, target);

return var;
}
Expand Down
Loading