How do I compile with VS 2012 on UE4 Source (GitHub)?

Where is the UnrealBuildtool that I have to change the compiler to Visual Studio 2012 instead od Visual Studio 2013? I can not find the file. I lost the last 3 hours trying to find it.

Hey WalterMachado,

If you are on the Launcher version of UE4, you won’t be able to change UnrealBuildTool to use anything besides VS2013 (Pro/Express). If you are using the full source from GitHub, you can modify the following file:

UnrealEngine\Engine\Source\Programs\UnrealBuildTool\Windows\UEBuildWindows.cs

public static readonly WindowsCompiler Compiler = WindowsCompiler.VisualStudio2013; 

to

public static readonly WindowsCompiler Compiler = WindowsCompiler.VisualStudio2012;

Hope that helps out!

-Steve

Thanks friend!