From 3301d8b7f1c997a840773c50d3f3b8bea4ffd885 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Sun, 22 May 2022 14:27:46 +0100 Subject: [PATCH] Clean up some warnings --- .editorconfig | 2 +- src/Squirrel/AppDesc.cs | 1 + test/Init.cs | 2 +- test/UtilityTests.cs | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index e08ed505..2556ef7c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -198,5 +198,5 @@ cpp_space_pointer_reference_alignment = left cpp_space_around_ternary_operator = insert cpp_wrap_preserve_blocks = one_liners -[*.{csproj,manifest,nuspec,wxs}] +[*.{csproj,manifest,nuspec,wxs,props}] indent_size = 2 \ No newline at end of file diff --git a/src/Squirrel/AppDesc.cs b/src/Squirrel/AppDesc.cs index d2c3208c..9906d4c0 100644 --- a/src/Squirrel/AppDesc.cs +++ b/src/Squirrel/AppDesc.cs @@ -291,6 +291,7 @@ namespace Squirrel /// /// The location of the application. /// The unique ID of the application. + /// Create the appDir if it does not already exist. public AppDescWindows(string appDir, string appId, bool createIfNotExist = true) { if (!SquirrelRuntimeInfo.IsWindows) diff --git a/test/Init.cs b/test/Init.cs index 4099e807..d2441001 100644 --- a/test/Init.cs +++ b/test/Init.cs @@ -14,7 +14,7 @@ namespace Squirrel.Tests : base(messageSink) { // Place initialization code here - var baseDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase.Replace("file:///", "")); + var baseDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location.Replace("file:///", "")); HelperFile.AddSearchPath(Path.Combine(baseDir, "..", "..", "..", "..", "vendor")); HelperFile.AddSearchPath(Path.Combine(baseDir, "..", "..", "..", "..", "vendor", "7zip")); HelperFile.AddSearchPath(Path.Combine(baseDir, "..", "..", "..", "..", "vendor", "wix")); diff --git a/test/UtilityTests.cs b/test/UtilityTests.cs index 69960c89..af00180b 100644 --- a/test/UtilityTests.cs +++ b/test/UtilityTests.cs @@ -227,7 +227,7 @@ namespace Squirrel.Tests { var text = Guid.NewGuid().ToString(); var bytes = Encoding.Unicode.GetBytes(text); - var provider = new SHA1Managed(); + var provider = SHA1.Create(); var hashString = string.Empty; foreach (var x in provider.ComputeHash(bytes)) {