Clean up some warnings

This commit is contained in:
Caelan Sayler
2022-05-22 14:27:46 +01:00
parent 6c6dc4f58a
commit 3301d8b7f1
4 changed files with 4 additions and 3 deletions

View File

@@ -198,5 +198,5 @@ cpp_space_pointer_reference_alignment = left
cpp_space_around_ternary_operator = insert cpp_space_around_ternary_operator = insert
cpp_wrap_preserve_blocks = one_liners cpp_wrap_preserve_blocks = one_liners
[*.{csproj,manifest,nuspec,wxs}] [*.{csproj,manifest,nuspec,wxs,props}]
indent_size = 2 indent_size = 2

View File

@@ -291,6 +291,7 @@ namespace Squirrel
/// </summary> /// </summary>
/// <param name="appDir">The location of the application.</param> /// <param name="appDir">The location of the application.</param>
/// <param name="appId">The unique ID of the application.</param> /// <param name="appId">The unique ID of the application.</param>
/// <param name="createIfNotExist">Create the appDir if it does not already exist.</param>
public AppDescWindows(string appDir, string appId, bool createIfNotExist = true) public AppDescWindows(string appDir, string appId, bool createIfNotExist = true)
{ {
if (!SquirrelRuntimeInfo.IsWindows) if (!SquirrelRuntimeInfo.IsWindows)

View File

@@ -14,7 +14,7 @@ namespace Squirrel.Tests
: base(messageSink) : base(messageSink)
{ {
// Place initialization code here // 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"));
HelperFile.AddSearchPath(Path.Combine(baseDir, "..", "..", "..", "..", "vendor", "7zip")); HelperFile.AddSearchPath(Path.Combine(baseDir, "..", "..", "..", "..", "vendor", "7zip"));
HelperFile.AddSearchPath(Path.Combine(baseDir, "..", "..", "..", "..", "vendor", "wix")); HelperFile.AddSearchPath(Path.Combine(baseDir, "..", "..", "..", "..", "vendor", "wix"));

View File

@@ -227,7 +227,7 @@ namespace Squirrel.Tests
{ {
var text = Guid.NewGuid().ToString(); var text = Guid.NewGuid().ToString();
var bytes = Encoding.Unicode.GetBytes(text); var bytes = Encoding.Unicode.GetBytes(text);
var provider = new SHA1Managed(); var provider = SHA1.Create();
var hashString = string.Empty; var hashString = string.Empty;
foreach (var x in provider.ComputeHash(bytes)) { foreach (var x in provider.ComputeHash(bytes)) {