diff --git a/src/Codebreaker.WinUI/App.xaml.cs b/src/Codebreaker.WinUI/App.xaml.cs index 6b254460..a8870506 100644 --- a/src/Codebreaker.WinUI/App.xaml.cs +++ b/src/Codebreaker.WinUI/App.xaml.cs @@ -69,7 +69,7 @@ public partial class App : Application services.AddScoped(); services.AddTransient(); - string apiBase = context.Configuration["ApiBase"] ?? throw new ConfigurationNotFoundException("ApiBase"); + string apiBase = context.Configuration["ApiBase"] ?? throw new InvalidOperationException("ApiBase configuration not found"); services.AddHttpClient((HttpClient client) => client.BaseAddress = new(apiBase)); services.AddScoped(); services.AddTransient(); diff --git a/src/Codebreaker.WinUI/Codebreaker.WinUI.csproj b/src/Codebreaker.WinUI/Codebreaker.WinUI.csproj index dc215f0c..af18e858 100644 --- a/src/Codebreaker.WinUI/Codebreaker.WinUI.csproj +++ b/src/Codebreaker.WinUI/Codebreaker.WinUI.csproj @@ -2,16 +2,16 @@ WinExe - net7.0-windows10.0.19041.0 + net8.0-windows10.0.19041.0 10.0.17763.0 CodeBreaker.WinUI app.manifest x86;x64;arm64 - win10-x86;win10-x64;win10-arm64 - win10-$(Platform).pubxml + win-x86;win-x64;win-arm64 true enable - true + true + enable CN innovation @@ -20,21 +20,7 @@ true true - - - - - - - - - - - - - - - + @@ -64,15 +50,17 @@ - + - - - - - + + + + + + +