How do I build C++ in UE4 from the command line on windows?

Would this help?

How do I build C++ in UE4 from the command line on windows?

I am using Visual Studio 2013 ultimate edition.

Is there a simple command line that I can run to get everything to compile?

Thanks,
-X

Take a look on these files especially Build.bat/Rebuild.bat
Engine\Build\BatchFiles\

Thanks but not really. This tells me how to compile a single file. I would like to build the solution in a manner similar to hitting F7 in Visual Studio. When I build in Visual Studio it does various hot reloads and seems to be somehow integrated with UE4.

Thanks,
-X

Thanks. I looked in there but there is a lot and it looks pretty complicated. It seems like that is more for generating project files etc.

Isn’t there a simple way to use MSBuild or something to build the solution using the .sln file? I’m not a windows C++ expert so I was hoping someone else knows how to do this.

Thanks,
-X

Here is one approach which partially works using MSBuild:

C:/PROGRA~2/MSBuild/12.0/Bin/MSBuild.exe c:/Users/Xarol/DOCUME~1/UNREAL~1/MYPROJ~1/MyProj.sln.metaproj

Note that before I got this to work I need to have Visual Studio emit the metaproj file from the sln. This is helpful for compiling and finding/fixing errors but it doesn’t trigger the hot reload that Visual Studio does. Any thoughts about how I can get a build like Visual Studio does including triggering hot reloads but do it from the command line?

Thanks,
-X

That’s what the batch file in Engine\Build\BatchFiles\ is for; you have to invoke the unreal build tool correctly for this to work.

Unfortunately there’s no other way to trigger it to rebuild the correct shared library for the hot reload.