mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Clean up some warnings
This commit is contained in:
@@ -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
|
||||||
@@ -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)
|
||||||
|
|||||||
@@ -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"));
|
||||||
|
|||||||
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user