An error occurred while trying to generate project files.
Running D:/UE_4.18/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“U:/Users/Anıl Yıldız/Documents/Unreal Projects/MyProject/MyProject.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
While compiling D:\UE_4.18\Engine\Intermediate\Build\BuildRules\UE4Rules.dll:
ERROR: error CS0016: Could not write to output file ‘d:\UE_4.18\Engine\Intermediate\Build\BuildRules\UE4Rules.dll’ – 'The directory name is invalid. ’
ERROR: UnrealBuildTool Exception: Unable to compile source files.
This is the error I get when I try to create a C++ project
I tried reinstalling VS2017 and UE4 and it still gives me this error