I don’t have a dotnet folder in ProgramFiles so I can’t even try this solution. Anyone know a version of dotnet that for sure works with UE5.1?
[edit]
So the problem is that I only had x86 version of dotnet. Make sure you have the x64 installed and instead of copying and overwriting the dotnet instalation as suggested here, just edit your environmental path variables to have the ProgramFiles dotnet mentioned first and the x86 one mentioned next.
C:\Program Files\dotnet\
C:\Program Files (x86)\dotnet\
As sugested here Help! I've been trying to create a C++ project in UE5 but every time I create a project it gives me this error message! - #4 by Packetdancer