Skip to content

Commit 26e2850

Browse files
authored
Fix publish-nuget workflow: resolve signing key path to absolute (#725)
* Add .NET 10 SDK to CodeQL analysis workflow Add 10.0.x to dotnet-version in codeql-analysis.yml to support building projects targeting net10.0. * Fix signing key path resolution in build-signed.ps1 The script passed a relative path (src/RulesEngine/signKey.snk) to -p:AssemblyOriginatorKeyFile, but MSBuild resolves that relative to the project directory, causing it to look for the file at src/RulesEngine/src/RulesEngine/signKey.snk which doesn't exist. Convert to absolute path using [System.IO.Path]::GetFullPath() so MSBuild finds the file at its actual location.
1 parent d1cbb5d commit 26e2850

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deployment/build-signed.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ param(
77

88
# sign and build the project
99
$directory = Split-Path $csprojFilePath;
10-
$signKeyFile = Join-Path $directory "signKey.snk";
10+
$signKeyFile = [System.IO.Path]::GetFullPath((Join-Path $directory "signKey.snk"))
1111

1212
$bytes = [Convert]::FromBase64String($signingKey)
1313
[IO.File]::WriteAllBytes($signKeyFile, $bytes)

0 commit comments

Comments
 (0)