Skip to content

Commit 2d5dfc7

Browse files
committed
fix: error using in Release
1 parent afa0087 commit 2d5dfc7

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/Everywhere.Windows/Common/SoftwareUpdater.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Everywhere.Interop;
1010
using Microsoft.Extensions.Logging;
1111
#if !DEBUG
12-
using Everywhere.Enums;
1312
using Everywhere.Utilities;
1413
#endif
1514

src/Everywhere.Windows/Everywhere.Windows.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</ItemGroup>
3535

3636
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
37-
<Exec Command="dotnet publish -c $(Configuration) -r win-x64 ..\Everywhere.Watchdog\Everywhere.Watchdog.csproj -o ..\Everywhere.Watchdog\bin\$(Configuration)\publish --no-restore -v d"/>
37+
<Exec Command="dotnet publish -c $(Configuration) -r win-x64 ..\Everywhere.Watchdog\Everywhere.Watchdog.csproj -o ..\Everywhere.Watchdog\bin\$(Configuration)\publish --no-restore"/>
3838
<Exec Command="xcopy /Y /I ..\Everywhere.Watchdog\bin\$(Configuration)\publish\Everywhere.Watchdog.exe $(OutDir)"/>
3939
</Target>
4040
</Project>

src/Everywhere/Common/Entrance.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#if !DEBUG
2-
using Everywhere.Utilities;
2+
using Everywhere.Interop;
33
#endif
44

55
using Serilog;
@@ -10,7 +10,7 @@ namespace Everywhere.Common;
1010
public static class Entrance
1111
{
1212
#if !DEBUG
13-
private static Mutex? AppMutex;
13+
private static Mutex? _appMutex;
1414
#endif
1515

1616
/// <summary>
@@ -19,11 +19,11 @@ public static class Entrance
1919
public static void ReleaseMutex()
2020
{
2121
#if !DEBUG
22-
if (AppMutex == null) return;
22+
if (_appMutex == null) return;
2323

24-
AppMutex.ReleaseMutex();
25-
AppMutex.Dispose();
26-
AppMutex = null;
24+
_appMutex.ReleaseMutex();
25+
_appMutex.Dispose();
26+
_appMutex = null;
2727
#endif
2828
}
2929

@@ -40,7 +40,7 @@ private static void InitializeApplicationMutex(string[] args)
4040
// axaml designer may launch this code, so we need to set it to null.
4141
_ = args;
4242
#else
43-
AppMutex = new Mutex(true, "EverywhereAppMutex", out var createdNew);
43+
_appMutex = new Mutex(true, "EverywhereAppMutex", out var createdNew);
4444
if (!createdNew)
4545
{
4646
if (!args.Contains("--autorun"))

0 commit comments

Comments
 (0)