Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create CSharpIntermediate due to packet mismatch #2130

Closed
LucadeRaad opened this issue Jan 28, 2024 · 1 comment · Fixed by #2132
Closed

Unable to create CSharpIntermediate due to packet mismatch #2130

LucadeRaad opened this issue Jan 28, 2024 · 1 comment · Fixed by #2132
Labels
bug Something isn't working

Comments

@LucadeRaad
Copy link

LucadeRaad commented Jan 28, 2024

Release Type: Official Release/GitHub (please choose appropriate option)
4.2.0.2067(from installer)
Version: Version number and/or git branch
4.2
Platform(s): Does the problem occur on Windows, Android...?
Windows
Describe the bug
A clear and concise description of what the bug is.
Selecting and starting the CSharpIntermediate tutorial
To Reproduce
Steps to reproduce the behavior:

  1. Select the CSharpIntermediate tutorial
  2. OK to Windows
  3. experience package mismatch

Expected behavior
A clear and concise description of what you expected to happen.
Get a CSharpIntermediate project

Screenshots
If applicable, add screenshots to help explain your problem (use GitHub drag & drop)
image

Log and callstacks
If any, please attach here any log or callstack (preferably in a .txt file using GitHub drag and drop)

Verbose: Process dependencies for CSharpIntermediate2.Game...
Info: Upgrading project [CSharpIntermediate2.Game] to use [Stride.Engine] from version [4.1.0.1-beta] to [4.2.0.2067] will be required
Verbose: Restore NuGet packages for CSharpIntermediate2.Game...
Verbose: Loading Assets from Package [Stride.Engine.sdpkg]
Verbose: Loading Assets from Package [Stride.Graphics.sdpkg]
Verbose: Loading Assets from Package [Stride.Particles.sdpkg]
Verbose: Loading Assets from Package [Stride.Rendering.sdpkg]
Verbose: Loading Assets from Package [Stride.Video.sdpkg]
Verbose: Loading Assets from Package [CSharpIntermediate2.Game.sdpkg]
Verbose: Compiling game assemblies...
Verbose: Game assemblies compiled...
Verbose: Generating CSharpIntermediate2.Windows...
Verbose: Process dependencies for CSharpIntermediate2.Windows...
Verbose: Restore NuGet packages for CSharpIntermediate2.Windows...
[C:\Users\lucad\StrideProj\CSharpIntermediate2\CSharpIntermediate2.Game\CSharpIntermediate2.Game.csproj(0,0)]: Error: Warning As Error: Detected package downgrade: Newtonsoft.Json from 13.0.3 to 13.0.1. Reference the package directly from the project to select a different version. 
 CSharpIntermediate2.Game -> Stride.Core.Assets.CompilerApp 4.2.0.2067 -> Stride.Assets.Models 4.2.0.2067 -> Stride.Assets 4.2.0.2067 -> Stride.Core.Assets 4.2.0.2067 -> Stride.Core.Packages 4.2.0.2067 -> NuGet.Protocol 6.8.0 -> NuGet.Packaging 6.8.0 -> Newtonsoft.Json (>= 13.0.3) 
 CSharpIntermediate2.Game -> Newtonsoft.Json (>= 13.0.1)
[C:\Users\lucad\StrideProj\CSharpIntermediate2\CSharpIntermediate2.Game\CSharpIntermediate2.Game.csproj(0,0)]: Error: Warning As Error: Detected package downgrade: Newtonsoft.Json from 13.0.3 to 13.0.1. Reference the package directly from the project to select a different version. 
 CSharpIntermediate2.Game -> Stride.Core.Assets.CompilerApp 4.2.0.2067 -> Stride.SpriteStudio.Offline 4.2.0.2067 -> Stride.Assets 4.2.0.2067 -> Stride.Core.Assets 4.2.0.2067 -> Stride.Core.Packages 4.2.0.2067 -> NuGet.Protocol 6.8.0 -> NuGet.Packaging 6.8.0 -> Newtonsoft.Json (>= 13.0.3) 
 CSharpIntermediate2.Game -> Newtonsoft.Json (>= 13.0.1)
[C:\Users\lucad\StrideProj\CSharpIntermediate2\CSharpIntermediate2.Windows\CSharpIntermediate2.Windows.csproj(0,0)]: Error: Warning As Error: Detected package downgrade: Newtonsoft.Json from 13.0.3 to 13.0.1. Reference the package directly from the project to select a different version. 
 CSharpIntermediate2.Windows -> CSharpIntermediate2.Game -> Stride.Core.Assets.CompilerApp 4.2.0.2067 -> Stride.Assets.Models 4.2.0.2067 -> Stride.Assets 4.2.0.2067 -> Stride.Core.Assets 4.2.0.2067 -> Stride.Core.Packages 4.2.0.2067 -> NuGet.Protocol 6.8.0 -> NuGet.Packaging 6.8.0 -> Newtonsoft.Json (>= 13.0.3) 
 CSharpIntermediate2.Windows -> CSharpIntermediate2.Game -> Newtonsoft.Json (>= 13.0.1)
[C:\Users\lucad\StrideProj\CSharpIntermediate2\CSharpIntermediate2.Windows\CSharpIntermediate2.Windows.csproj(0,0)]: Error: Warning As Error: Detected package downgrade: Newtonsoft.Json from 13.0.3 to 13.0.1. Reference the package directly from the project to select a different version. 
 CSharpIntermediate2.Windows -> CSharpIntermediate2.Game -> Stride.Core.Assets.CompilerApp 4.2.0.2067 -> Stride.SpriteStudio.Offline 4.2.0.2067 -> Stride.Assets 4.2.0.2067 -> Stride.Core.Assets 4.2.0.2067 -> Stride.Core.Packages 4.2.0.2067 -> NuGet.Protocol 6.8.0 -> NuGet.Packaging 6.8.0 -> Newtonsoft.Json (>= 13.0.3) 
 CSharpIntermediate2.Windows -> CSharpIntermediate2.Game -> Newtonsoft.Json (>= 13.0.1)

Additional context
Add any other context about the problem here.
Selecting other tutorials/projects works just fine

@LucadeRaad LucadeRaad added the bug Something isn't working label Jan 28, 2024
@Kryptos-FR
Copy link
Member

It will be fixed in the next version. In the meantime, you can either update the dependency (in CSharpIntermediate.Game.csproj) to version 13.0.3, or remove it entirely and use System.Text.Json (as done in the PR, see AsyncWebApi.cs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants