I’m getting error all like this: Warning As Error: Package ‘Microsoft.Build 17.14.8’ 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 ‘net8.0’. This package may not be fully compatible with your project.
And all my code getting error. How to solve this? I couldn’t find errors on the internet like this.
Hello there @keremtekelek!
Checking with my peers about the errors you are receiving, this looks like your project is targeting .NET 8, but the package being used (17.14.8) only works with old .NET Framework 4.x. After that, NuGet tries to fall back, but since they are not compatible, it results in the errors you are seeing.
I suggest checking and updating for the latest version for the package that supports .NET 8, please run the following:
dotnet list package --outdated
dotnet add package Microsoft.Build --version <latest>
Additionally, I would double-check all elements in your install, just in case. You can use UE’s guide on the matter: