disable update on debug builds
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
<NoWarn>1591</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
||||
<DefineConstants>$(DefineConstants);DISABLE_UPDATE</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<DebugType>None</DebugType>
|
||||
|
||||
@@ -16,7 +16,9 @@ public class AppUpdates(string updateUrl, Window mainWindow)
|
||||
|
||||
public async Task UpdateApp()
|
||||
{
|
||||
#if !DISABLE_UPDATE
|
||||
#if DISABLE_UPDATE
|
||||
await Task.CompletedTask;
|
||||
#else
|
||||
try
|
||||
{
|
||||
await UpdateAppCore();
|
||||
|
||||
Reference in New Issue
Block a user