Unreal engine startup crash c++

I cant come into UE5 without geting this following message, can someone help me?

An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/UE_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“C:/Users/L1caa/OneDrive/Unreal Projects/Tva/MyProject/MyProject.uproject” -game -rocket -progress
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“C:/Users/L1caa/OneDrive/Unreal Projects/Tva/MyProject/MyProject.uproject” -game -rocket -progress
‘dotnet’ is not recognized as an internal or external command,
operable program or batch file.

Modify your Visual Studio install and ensure you follow this guide:

Setting up Visual Studio

1 Like

Also as an aside, with that long of an originating filepath for your projects root folder you may run into filepath length issues in the future. If you see ‘Path Too Long’ in the future this is the reason for it. It is possible to change the default Windows character limitation.

Thank you so much, it worked!