diff --git a/src/modules/cmdpal/extensions/AzureResourcesExtension/AzureResourcesExtension.csproj b/src/modules/cmdpal/extensions/AzureResourcesExtension/AzureResourcesExtension.csproj index 1407b49a802..bab93683f03 100644 --- a/src/modules/cmdpal/extensions/AzureResourcesExtension/AzureResourcesExtension.csproj +++ b/src/modules/cmdpal/extensions/AzureResourcesExtension/AzureResourcesExtension.csproj @@ -24,7 +24,6 @@ - diff --git a/src/modules/cmdpal/extensions/GitHubExtension/GitHubExtension.csproj b/src/modules/cmdpal/extensions/GitHubExtension/GitHubExtension.csproj index fc5c8ee7872..e2ff536b96a 100644 --- a/src/modules/cmdpal/extensions/GitHubExtension/GitHubExtension.csproj +++ b/src/modules/cmdpal/extensions/GitHubExtension/GitHubExtension.csproj @@ -24,9 +24,8 @@ - - - + + diff --git a/src/modules/cmdpal/extensions/HackerNewsExtension/HackerNewsExtension.csproj b/src/modules/cmdpal/extensions/HackerNewsExtension/HackerNewsExtension.csproj index f5ca6d76a27..b6779756c9c 100644 --- a/src/modules/cmdpal/extensions/HackerNewsExtension/HackerNewsExtension.csproj +++ b/src/modules/cmdpal/extensions/HackerNewsExtension/HackerNewsExtension.csproj @@ -24,9 +24,8 @@ - - - + + diff --git a/src/modules/cmdpal/extensions/MediaControlsExtension/MediaControlsExtension.csproj b/src/modules/cmdpal/extensions/MediaControlsExtension/MediaControlsExtension.csproj index 43c3d3a3e30..9949d9cf06d 100644 --- a/src/modules/cmdpal/extensions/MediaControlsExtension/MediaControlsExtension.csproj +++ b/src/modules/cmdpal/extensions/MediaControlsExtension/MediaControlsExtension.csproj @@ -24,9 +24,8 @@ - - - + + diff --git a/src/modules/cmdpal/extensions/ProcessMonitorExtension/ProcessMonitorExtension.csproj b/src/modules/cmdpal/extensions/ProcessMonitorExtension/ProcessMonitorExtension.csproj index a555e5dd8b9..df559f65a99 100644 --- a/src/modules/cmdpal/extensions/ProcessMonitorExtension/ProcessMonitorExtension.csproj +++ b/src/modules/cmdpal/extensions/ProcessMonitorExtension/ProcessMonitorExtension.csproj @@ -24,9 +24,8 @@ - - - + + diff --git a/src/modules/cmdpal/extensions/SpongebotExtension/SpongebotCommandsProvider.cs b/src/modules/cmdpal/extensions/SpongebotExtension/SpongebotCommandsProvider.cs index 54a92b2d626..0d0c012e70f 100644 --- a/src/modules/cmdpal/extensions/SpongebotExtension/SpongebotCommandsProvider.cs +++ b/src/modules/cmdpal/extensions/SpongebotExtension/SpongebotCommandsProvider.cs @@ -12,13 +12,13 @@ using System.Runtime.InteropServices.WindowsRuntime; using System.Text; using System.Text.Json; +using System.Text.Json.Nodes; using System.Threading.Tasks; using System.Xml.Linq; using ABI.System; using Microsoft.UI; using Microsoft.Windows.CommandPalette.Extensions; using Microsoft.Windows.CommandPalette.Extensions.Helpers; -using Newtonsoft.Json.Linq; using Windows.Foundation; using Windows.Storage.Streams; @@ -82,7 +82,7 @@ private static async Task _GenerateMeme(string text) { var client = new System.Net.Http.HttpClient(); var state = File.ReadAllText(StateJsonPath()); - var jsonState = JObject.Parse(state); + var jsonState = JsonNode.Parse(state); var bodyObj = new Dictionary { @@ -99,7 +99,7 @@ private static async Task _GenerateMeme(string text) { var resp = await client.PostAsync("https://api.imgflip.com/caption_image", content); var respBody = await resp.Content.ReadAsStringAsync(); // dynamic r = JsonSerializer.Deserialize(respBody); - JObject response = JObject.Parse(respBody); + var response = JsonNode.Parse(respBody); // var url = r?.data?.url; var url = response["data"]?["url"]?.ToString() ?? ""; diff --git a/src/modules/cmdpal/extensions/SpongebotExtension/SpongebotExtension.csproj b/src/modules/cmdpal/extensions/SpongebotExtension/SpongebotExtension.csproj index 94b05bd4802..f7233b048d2 100644 --- a/src/modules/cmdpal/extensions/SpongebotExtension/SpongebotExtension.csproj +++ b/src/modules/cmdpal/extensions/SpongebotExtension/SpongebotExtension.csproj @@ -24,10 +24,8 @@ - - - - + + diff --git a/src/modules/cmdpal/extensionsdk/Microsoft.Windows.CommandPalette.Extensions/Microsoft.Windows.CommandPalette.Extensions.vcxproj b/src/modules/cmdpal/extensionsdk/Microsoft.Windows.CommandPalette.Extensions/Microsoft.Windows.CommandPalette.Extensions.vcxproj index 2ae6fa3a6e5..49d0757ec4e 100644 --- a/src/modules/cmdpal/extensionsdk/Microsoft.Windows.CommandPalette.Extensions/Microsoft.Windows.CommandPalette.Extensions.vcxproj +++ b/src/modules/cmdpal/extensionsdk/Microsoft.Windows.CommandPalette.Extensions/Microsoft.Windows.CommandPalette.Extensions.vcxproj @@ -1,7 +1,6 @@ - true @@ -233,7 +232,6 @@ - @@ -242,8 +240,6 @@ - -