Skip to content

Commit

Permalink
Update GetToolInstallationPath to use user temp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Dec 17, 2024
1 parent d9c5724 commit 54286ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Update `IsPathTooLong` to equal or greater than `260`.
- Update `SignExtension.Sign` to sign NuGet or files.
- Update `SignProject` to sign files using `Azure Key Vault` if available.
- Update `GetToolInstallationPath` to use user temp folder.
### Tests
- Update `NuGetExtensionTests`
- Add `AzureKeyVaultConfigTests`
Expand Down
3 changes: 2 additions & 1 deletion ricaun.Nuke/Tools/AzureSignToolUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public static void EnsureAzureToolIsInstalled()

private static AbsolutePath GetToolInstallationPath()
{
AbsolutePath folder = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
var assemblyName = typeof(AzureSignToolUtils).Assembly.GetName();
AbsolutePath folder = (AbsolutePath) Path.GetTempPath() / assemblyName.Name / assemblyName.Version.ToString(3);
return folder / "Tools";
}

Expand Down

0 comments on commit 54286ca

Please sign in to comment.