diff --git a/CHANGELOG.md b/CHANGELOG.md index 27ef837..f3985d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ Represents the **NuGet** versions. +## v2.2.4 +- *Fixed:* `AddParameter` now correctly accepts a value of any type; not just limited to `string` values. + ## v2.2.3 - *Fixed*: Updated `System.Text.Json` package depenedency to latest; resolve [Microsoft Security Advisory CVE-2024-43485](https://github.com/advisories/GHSA-8g4q-xg66-9fp4). diff --git a/src/OnRamp/CodeGeneratorArgs.cs b/src/OnRamp/CodeGeneratorArgs.cs index 6ad42ad..8e3a419 100644 --- a/src/OnRamp/CodeGeneratorArgs.cs +++ b/src/OnRamp/CodeGeneratorArgs.cs @@ -49,7 +49,7 @@ public CodeGeneratorArgs AddAssembly(params Assembly[] assemblies) /// The parameter name. /// The parameter value. /// The current instance to support fluent-style method-chaining. - public CodeGeneratorArgs AddParameter(string key, string? value) + public CodeGeneratorArgs AddParameter(string key, T value) { ((ICodeGeneratorArgs)this).AddParameter(key, value); return this; diff --git a/src/OnRamp/OnRamp.csproj b/src/OnRamp/OnRamp.csproj index 3c2f79f..37d631f 100644 --- a/src/OnRamp/OnRamp.csproj +++ b/src/OnRamp/OnRamp.csproj @@ -4,7 +4,7 @@ Exe netstandard2.1 OnRamp - 2.2.3 + 2.2.4 true Avanade Avanade @@ -50,11 +50,11 @@ - + - + \ No newline at end of file