Conditional release auto reboot

Added conditional release var and reboot code.
This commit is contained in:
0% [█ █ █ █ █ █ █ █ █ █] 100% 2026-06-02 13:00:43 -05:00
parent 62e6a527db
commit 44e6b64be5
3 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<Platform Name="Any CPU" />
<Platform Name="x64" />
</Configurations>
<Project Path="DataDeath/DataDeath.csproj">
<Project Path="DataDeath/DataDeath.csproj" Id="dd6531d7-ced1-4df1-bc08-13ec2bca096d">
<Platform Solution="*|x64" Project="x64" />
</Project>
</Solution>

View File

@ -49,7 +49,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;RELEASE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>

View File

@ -121,8 +121,14 @@ namespace DataDeath
}
}
//Reboot();
#if DEBUG
Console.WriteLine("Press Enter to exit...");
Console.ReadLine();
#endif
#if RELEASE
Reboot();
#endif
}
public static void Reboot()