diff --git a/Directory.Build.targets b/Directory.Build.targets
index 556ef49f..b9cbaca2 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -129,6 +129,7 @@
+ $(DefineConstants);SUPPORTS_APPLICATION_CONFIGURATION_INITIALIZATION
$(DefineConstants);SUPPORTS_DIRECT_JSON_ELEMENT_SERIALIZATION
$(DefineConstants);SUPPORTS_JSON_NODES
$(DefineConstants);SUPPORTS_ONE_SHOT_RANDOM_NUMBER_GENERATOR_METHODS
diff --git a/sandbox/OpenIddict.Sandbox.WinForms.Client/App.config b/sandbox/OpenIddict.Sandbox.WinForms.Client/App.config
new file mode 100644
index 00000000..451442db
--- /dev/null
+++ b/sandbox/OpenIddict.Sandbox.WinForms.Client/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/sandbox/OpenIddict.Sandbox.WinForms.Client/OpenIddict.Sandbox.WinForms.Client.csproj b/sandbox/OpenIddict.Sandbox.WinForms.Client/OpenIddict.Sandbox.WinForms.Client.csproj
index 2c943f59..b537ba0d 100644
--- a/sandbox/OpenIddict.Sandbox.WinForms.Client/OpenIddict.Sandbox.WinForms.Client.csproj
+++ b/sandbox/OpenIddict.Sandbox.WinForms.Client/OpenIddict.Sandbox.WinForms.Client.csproj
@@ -5,6 +5,8 @@
net48
$(TargetFrameworks);net8.0-windows7.0
true
+ app.manifest
+ PerMonitorV2
diff --git a/sandbox/OpenIddict.Sandbox.WinForms.Client/Program.cs b/sandbox/OpenIddict.Sandbox.WinForms.Client/Program.cs
index 82010f43..0b8ca44f 100644
--- a/sandbox/OpenIddict.Sandbox.WinForms.Client/Program.cs
+++ b/sandbox/OpenIddict.Sandbox.WinForms.Client/Program.cs
@@ -7,6 +7,10 @@ using OpenIddict.Client;
using OpenIddict.Sandbox.WinForms.Client;
using static OpenIddict.Abstractions.OpenIddictConstants;
+#if SUPPORTS_APPLICATION_CONFIGURATION_INITIALIZATION
+ApplicationConfiguration.Initialize();
+#endif
+
var host = new HostBuilder()
// Note: applications for which a single instance is preferred can reference
// the Dapplo.Microsoft.Extensions.Hosting.AppServices package and call this
diff --git a/sandbox/OpenIddict.Sandbox.WinForms.Client/app.manifest b/sandbox/OpenIddict.Sandbox.WinForms.Client/app.manifest
new file mode 100644
index 00000000..7936d941
--- /dev/null
+++ b/sandbox/OpenIddict.Sandbox.WinForms.Client/app.manifest
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+