Visual Studio not building, Detected package downgrade

Hey, so I had a recent issue where I ran Rider and misstakenly uninstalled VS instead of updating it. And since then my projects dont want to compile. Ive reinstalled everything but my projects are broken running from VS. I can run them fine from Epic Launcher thought. I get errors of Detected Package Downgrade. And I dont really know what to do to fix this. I cant find anything appropriate online, and ChatGPT just brings me around in a loop, leading no where. I have a warning “This solution contains packages with vulnerabilites”. But when I run NuGet and try and update something I keep getting the same errors. Please help.

I use VS community 2022, I have .NET desktop dev, Game dev with c++ and Desktop dev with C++ installed. Along with .NET 6.0 Runtime, .NET Framwork 4.8.1 SKD, Windows 10 SDK and MSVC v143 VS 2022 c++ installed. These are the packages I saw online that I needed.

Im not an advid user off c++, I had to start using it due to wanting to have solid structs, so I might be missing something very obviouse. Or I have made the situation worse throught trying to fix it myself. I have also tried deleting intermidiate and saved, and after that gererating new.

Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly from the project to select a different version. 
 EpicGames.Jupiter -> EpicGames.Core -> System.Memory (>= 4.6.0) 
 EpicGames.Jupiter -> System.Memory (>= 4.5.5)
Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly from the project to select a different version. 
 EpicGames.IoHash -> EpicGames.Core -> System.Memory (>= 4.6.0) 
 EpicGames.IoHash -> System.Memory (>= 4.5.5)
Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly from the project to select a different version. 
 EpicGames.Serialization -> EpicGames.IoHash -> EpicGames.Core -> System.Memory (>= 4.6.0) 
 EpicGames.Serialization -> EpicGames.IoHash -> System.Memory (>= 4.5.5)
Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging from 9.0.0 to 6.0.0. Reference the package directly from the project to select a different version. 
 EpicGames.Horde -> EpicGames.Core -> Microsoft.Extensions.Logging (>= 9.0.0) 
 EpicGames.Horde -> Microsoft.Extensions.Logging (>= 6.0.0)
Warning As Error: Detected package downgrade: Microsoft.Extensions.Http.Polly from 9.0.0 to 6.0.26. Reference the package directly from the project to select a different version. 
 EpicGames.Horde -> EpicGames.Core -> Microsoft.Extensions.Http.Polly (>= 9.0.0) 
 EpicGames.Horde -> Microsoft.Extensions.Http.Polly (>= 6.0.26)
Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging from 9.0.0 to 8.0.0. Reference the package directly from the project to select a different version. 
 EpicGames.Redis -> EpicGames.Core -> Microsoft.Extensions.Logging (>= 9.0.0) 
 EpicGames.Redis -> Microsoft.Extensions.Logging (>= 8.0.0)
Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Console from 9.0.0 to 8.0.0. Reference the package directly from the project to select a different version. 
 EpicGames.Perforce.Fixture -> EpicGames.Perforce.Managed -> EpicGames.Core -> Microsoft.Extensions.Logging.Console (>= 9.0.0) 
 EpicGames.Perforce.Fixture -> Microsoft.Extensions.Logging.Console (>= 8.0.0)
Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Console from 9.0.0 to 6.0.0. Reference the package directly from the project to select a different version. 
 UnrealBuildTool -> EpicGames.Core -> Microsoft.Extensions.Logging.Console (>= 9.0.0) 
 UnrealBuildTool -> Microsoft.Extensions.Logging.Console (>= 6.0.0)
Microsoft.Extensions.Configuration.Abstractions 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Configuration 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.DependencyInjection.Abstractions 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Logging.Abstractions 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Options 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Primitives 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
System.Diagnostics.DiagnosticSource 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Bcl.AsyncInterfaces 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Logging.Configuration 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Logging.Console 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Options.ConfigurationExtensions 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
System.IO.Pipelines 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
System.Text.Encodings.Web 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
System.Text.Json 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Http 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.DependencyInjection 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Logging 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Package 'Microsoft.Build 17.12.6' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
Package 'Microsoft.IO.Redist 6.0.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
Package 'Microsoft.Extensions.Caching.Memory' 6.0.1 has a known high severity vulnerability, https://github.com/advisories/GHSA-qj66-m88j-hmgj
Microsoft.Bcl.AsyncInterfaces 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Configuration.Abstractions 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Configuration 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.DependencyInjection.Abstractions 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.DependencyInjection 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Http 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Logging.Abstractions 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Logging.Configuration 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Logging.Console 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Logging 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Options.ConfigurationExtensions 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Options 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
Microsoft.Extensions.Primitives 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
System.Diagnostics.DiagnosticSource 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
System.IO.Pipelines 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
System.Text.Encodings.Web 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.
System.Text.Json 9.0.0 doesn't support net6.0-windows10.0.19041 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.

Running restore:

D:\UE_Projects\TurnBasedGame>dotnet restore
    D:\UE_Projects\TurnBasedGame\Intermediate\ProjectFiles\TurnBasedGame.vcxproj : warning NU1503: Skipping restore for project 'D:\UE_Projects\TurnBasedGame\Intermediate\ProjectFiles\TurnBasedGame.vcxproj'. The project file may be invalid or missing targets required for restore.
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.MsBuild\EpicGames.MsBuild.csproj : warning NU1701: Package 'Microsoft.Build 17.12.6' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.MsBuild\EpicGames.MsBuild.csproj : warning NU1701: Package 'Microsoft.IO.Redist 6.0.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Serialization\EpicGames.Serialization.csproj : error NU1605:
      Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly fr
      om the project to select a different version.
       EpicGames.Serialization -> EpicGames.IoHash -> EpicGames.Core -> System.Memory (>= 4.6.0)
       EpicGames.Serialization -> EpicGames.IoHash -> System.Memory (>= 4.5.5)
    D:\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Console from 9.0.0 to 6.0.0. Reference
      the package directly from the project to select a different version.
       UnrealBuildTool -> EpicGames.Core -> Microsoft.Extensions.Logging.Console (>= 9.0.0)
       UnrealBuildTool -> Microsoft.Extensions.Logging.Console (>= 6.0.0)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Jupiter\EpicGames.Jupiter.csproj : error NU1605:
      Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly fr
      om the project to select a different version.
       EpicGames.Jupiter -> EpicGames.Core -> System.Memory (>= 4.6.0)
       EpicGames.Jupiter -> System.Memory (>= 4.5.5)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.IoHash\EpicGames.IoHash.csproj : error NU1605:
      Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly fr
      om the project to select a different version.
       EpicGames.IoHash -> EpicGames.Core -> System.Memory (>= 4.6.0)
       EpicGames.IoHash -> System.Memory (>= 4.5.5)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj : warning NU1903: Package 'Microsoft.Extensions.Caching.Memory' 6.0.1 has a known high severity vulnerability, https://github.com/advisories/GHSA-qj66-m88j-hmgj
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Http.Polly from 9.0.0 to 6.0.26. Reference the
      package directly from the project to select a different version.
       EpicGames.Horde -> EpicGames.Core -> Microsoft.Extensions.Http.Polly (>= 9.0.0)
       EpicGames.Horde -> Microsoft.Extensions.Http.Polly (>= 6.0.26)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging from 9.0.0 to 6.0.0. Reference the pack
      age directly from the project to select a different version.
       EpicGames.Horde -> EpicGames.Core -> Microsoft.Extensions.Logging (>= 9.0.0)
       EpicGames.Horde -> Microsoft.Extensions.Logging (>= 6.0.0)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Redis\EpicGames.Redis.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging from 9.0.0 to 8.0.0. Reference the pack
      age directly from the project to select a different version.
       EpicGames.Redis -> EpicGames.Core -> Microsoft.Extensions.Logging (>= 9.0.0)
       EpicGames.Redis -> Microsoft.Extensions.Logging (>= 8.0.0)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Perforce.Fixture\EpicGames.Perforce.Fixture.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Console from 9.0.0 to 8.0.0. Reference
      the package directly from the project to select a different version.
       EpicGames.Perforce.Fixture -> EpicGames.Perforce.Managed -> EpicGames.Core -> Microsoft.Extensions.Logging.Consol
      e (>= 9.0.0)
       EpicGames.Perforce.Fixture -> Microsoft.Extensions.Logging.Console (>= 8.0.0)

Restore failed with 8 error(s) and 4 warning(s) in 4,2s

D:\UE_Projects\TurnBasedGame>dotnet restore
    D:\UE_Projects\TurnBasedGame\Intermediate\ProjectFiles\TurnBasedGame.vcxproj : warning NU1503: Skipping restore for project 'D:\UE_Projects\TurnBasedGame\Intermediate\ProjectFiles\TurnBasedGame.vcxproj'. The project file may be invalid or missing targets required for restore.
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.MsBuild\EpicGames.MsBuild.csproj : warning NU1701: Package 'Microsoft.Build 17.12.6' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.MsBuild\EpicGames.MsBuild.csproj : warning NU1701: Package 'Microsoft.IO.Redist 6.0.1' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj : warning NU1903: Package 'Microsoft.Extensions.Caching.Memory' 6.0.1 has a known high severity vulnerability, https://github.com/advisories/GHSA-qj66-m88j-hmgj
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Jupiter\EpicGames.Jupiter.csproj : error NU1605:
      Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly fr
      om the project to select a different version.
       EpicGames.Jupiter -> EpicGames.Core -> System.Memory (>= 4.6.0)
       EpicGames.Jupiter -> System.Memory (>= 4.5.5)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.IoHash\EpicGames.IoHash.csproj : error NU1605:
      Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly fr
      om the project to select a different version.
       EpicGames.IoHash -> EpicGames.Core -> System.Memory (>= 4.6.0)
       EpicGames.IoHash -> System.Memory (>= 4.5.5)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Redis\EpicGames.Redis.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging from 9.0.0 to 8.0.0. Reference the pack
      age directly from the project to select a different version.
       EpicGames.Redis -> EpicGames.Core -> Microsoft.Extensions.Logging (>= 9.0.0)
       EpicGames.Redis -> Microsoft.Extensions.Logging (>= 8.0.0)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Serialization\EpicGames.Serialization.csproj : error NU1605:
      Warning As Error: Detected package downgrade: System.Memory from 4.6.0 to 4.5.5. Reference the package directly fr
      om the project to select a different version.
       EpicGames.Serialization -> EpicGames.IoHash -> EpicGames.Core -> System.Memory (>= 4.6.0)
       EpicGames.Serialization -> EpicGames.IoHash -> System.Memory (>= 4.5.5)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Http.Polly from 9.0.0 to 6.0.26. Reference the
      package directly from the project to select a different version.
       EpicGames.Horde -> EpicGames.Core -> Microsoft.Extensions.Http.Polly (>= 9.0.0)
       EpicGames.Horde -> Microsoft.Extensions.Http.Polly (>= 6.0.26)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Horde\EpicGames.Horde.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging from 9.0.0 to 6.0.0. Reference the pack
      age directly from the project to select a different version.
       EpicGames.Horde -> EpicGames.Core -> Microsoft.Extensions.Logging (>= 9.0.0)
       EpicGames.Horde -> Microsoft.Extensions.Logging (>= 6.0.0)
    D:\UE_5.4\Engine\Source\Programs\Shared\EpicGames.Perforce.Fixture\EpicGames.Perforce.Fixture.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Console from 9.0.0 to 8.0.0. Reference
      the package directly from the project to select a different version.
       EpicGames.Perforce.Fixture -> EpicGames.Perforce.Managed -> EpicGames.Core -> Microsoft.Extensions.Logging.Consol
      e (>= 9.0.0)
       EpicGames.Perforce.Fixture -> Microsoft.Extensions.Logging.Console (>= 8.0.0)
    D:\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1605:
      Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Console from 9.0.0 to 6.0.0. Reference
      the package directly from the project to select a different version.
       UnrealBuildTool -> EpicGames.Core -> Microsoft.Extensions.Logging.Console (>= 9.0.0)
       UnrealBuildTool -> Microsoft.Extensions.Logging.Console (>= 6.0.0)

Restore failed with 8 error(s) and 4 warning(s) in 3,7s

I also tried creating a new project and that new Unreal C++ project does not build. When pasting the error in ChatGPT it told me about a BuildConfiguration.xml in my AppData, but I could not find that file in there.

Running D:/UE_5.4/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="D:/UE_Projects/MyProject/MyProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="D:/UE_Projects/MyProject/MyProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\max30\AppData\Local\UnrealBuildTool\Log.txt
Available x64 toolchains (1):
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
    (Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
Available x64 toolchains (1):
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
    (Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
Creating makefile for MyProjectEditor (no existing makefile)
Available x64 toolchains (1):
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
    (Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
Available x64 toolchains (1):
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
    (Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
C:/Users/max30/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished in +00:00:00.007 and deleted 0 files with total size 0 MiB and 0 empty folders. Scanned 0 files in 1 folders with total size 0 MiB.
@progress push 5%
Parsing headers for MyProjectEditor
  Running Internal UnrealHeaderTool D:\UE_Projects\MyProject\MyProject.uproject D:\UE_Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest -WarningsAsErrors -installed
Total of 6 written
Reflection code generated for MyProjectEditor in 1.8377103 seconds
@progress pop
Building MyProjectEditor...
Using Visual Studio 2022 14.42.34435 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433) and Windows 10.0.26100.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Warning: Visual Studio 2022 compiler is not a preferred version
Determining max actions to execute in parallel (8 physical cores, 16 logical cores)
  Executing up to 8 processes, one per physical core
  Requested 1.5 GB memory per action, 3.83 GB available: limiting max parallel actions to 2
Using Parallel executor to run 11 action(s)
------ Building 11 action(s) started ------
[1/11] Resource Default.rc2
[2/11] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.Cpp20.cpp
D:\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: '__has_feature' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
D:\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: unexpected tokens following preprocessor directive - expected a newline
D:\UE_5.4\Engine\Source\Runtime\Engine\Classes\Engine\SkeletalMesh.h(930): warning C4996: 'FBoneMirrorInfo': FBoneMirrorInfo is deprecated. Please use UMirrorDataTable for mirroring support. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
Total time in Parallel executor: 49.34 seconds
Total execution time: 74.74 seconds

(post deleted by author)