File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 99using Everywhere . Interop ;
1010using Microsoft . Extensions . Logging ;
1111#if ! DEBUG
12- using Everywhere . Enums ;
1312using Everywhere . Utilities ;
1413#endif
1514
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11#if ! DEBUG
2- using Everywhere . Utilities ;
2+ using Everywhere . Interop ;
33#endif
44
55using Serilog ;
@@ -10,7 +10,7 @@ namespace Everywhere.Common;
1010public 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" ) )
You can’t perform that action at this time.
0 commit comments