Skip to content

Commit

Permalink
[Samples] Remove Newtonsoft.Json dependency in CSharpIntermediate
Browse files Browse the repository at this point in the history
  • Loading branch information
Kryptos-FR committed Jan 28, 2024
1 parent 5d31273 commit 269e400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System.Collections.Generic;
using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Stride.Core.Mathematics;
using Stride.Engine;

Expand Down Expand Up @@ -50,8 +50,8 @@ private async Task RetrieveStrideRepos()
// We store the contents of the response in a string
string responseContent = await response.Content.ReadAsStringAsync();

// We serialze the string in to an object
openCollectiveEvents = JsonConvert.DeserializeObject<List<OpenCollectiveEvent>>(responseContent);
// We deserialze the string into an object
openCollectiveEvents = JsonSerializer.Deserialize<List<OpenCollectiveEvent>>(responseContent);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<PackageReference Include="Stride.Particles" Version="4.2.0.1" />
<PackageReference Include="Stride.UI" Version="4.2.0.1" />
<PackageReference Include="Stride.Core.Assets.CompilerApp" Version="4.2.0.1" IncludeAssets="build;buildTransitive" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<ProjectReference Include="..\..\..\..\Templates\Packs\PrototypingBlocks\PrototypingBlocks.csproj" />
<ProjectReference Include="..\..\..\..\Templates\Packs\mannequinModel\mannequinModel.csproj" />
<ProjectReference Include="..\..\..\..\Templates\Packs\SamplesAssetPackage\SamplesAssetPackage.csproj" />
Expand Down

0 comments on commit 269e400

Please sign in to comment.