GenerateProjectFiles error visual studio

When I run the GenerateProjectFiles.bat in the UnrealEngine folder I get failed to compile error:

Blockquote

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\bin\Microsoft.CSharp.CurrentVersion.targe
ts(321,5): error MSB4019: Das importierte Projekt “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSB
uild\15.0\bin\Roslyn\Microsoft.CSharp.Core.targets” wurde nicht gefunden. Vergewissern Sie sich, dass der Pfad in der <
Import>-Deklaration korrekt und die Datei auf dem Datenträger vorhanden ist. [C:\Users\Kurana\Desktop\UnrealEngine-
release\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]

GenerateProjectFiles ERROR: UnrealBuildTool failed to compile.

I installed Visual Studio 2017 and in the tutorial they installed the version 2015.

To anyone interested (since it happened to me with UE4 1.19.2 and Visual Studio 2017), I resolved installing in VS Desktop development with .NET and Desktop development with C++.

More details here: UE4.SLN not generated? -- Building from Source - General Discussion - Unreal Engine Forums