[Awake] Enable analyzer and fix warnings

This commit is contained in:
CleanCodeDeveloper
2022-03-08 22:00:03 +01:00
parent eb961ee052
commit 85813a9b8f
2 changed files with 5 additions and 3 deletions

View File

@@ -15,6 +15,8 @@
<Company>Microsoft Corporation</Company>
<Version>$(Version).0</Version>
<ApplicationIcon>Images\Awake.ico</ApplicationIcon>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>Recommended</AnalysisMode>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">

View File

@@ -36,9 +36,9 @@ namespace Awake
// the pull request is issued.
private static readonly string BuildId = "ARBITER_01312022";
private static Mutex? _mutex = null;
private static FileSystemWatcher? _watcher = null;
private static SettingsUtils? _settingsUtils = null;
private static Mutex? _mutex;
private static FileSystemWatcher? _watcher;
private static SettingsUtils? _settingsUtils;
public static Mutex LockMutex { get => _mutex; set => _mutex = value; }