Msbuild is not recognized

Downliaded the zip file from git and ran the setup.bat but when I get to run generate project files it can not find msbuild. Could this be a path issue?

I have the source in F:Programfiles\UnrealEngine-release
The VS tools are: F:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools
But the msbuild is in C:\Program Files (x86)\MSBuild\12.0\Bin

I also tried these links with no sucess:

Hey Shoiko-

Which version of Visual Studio are you using? As of 4.7 we no longer support Visual Studio 2012. You can install the free version of VS 2013 Community which is fully compatible with UE4.

Cheers

I am using 2013 for desktop but I do have 2012 installed as well could it be that 2012 needs to be removed?

It is possible that there is miss-communication due to having both versions. Unless it is specifically needed for other uses, I would suggest uninstalling 2012 and then try running the Setup.bat again.

I reinstalled VS 2008 and redid the entire setup.bat process. Error still exist :confused:

I cant unmake this as an answer

Where can I find the script that is calling the msbuild? I want to modify the script to point to the correct path

34393-error.png

Added an image

Hey Shoiko-

The file I’ve attached will give us some extra information on your VS setup. When you download the text file, place it on your desktop or inside an empty folder. Remove the .txt extension to convert it into a batch file and run it. Doing so will generate an “info.txt” file that I’ll need you to upload for me.

Additionally, if you remove VS2008 so that the only version of Visual Studio on your machine is 2013 do you still get the same error when you run the GenerateProjectFiles.bat file?

link text

I removed 2008 but I still have VS 2003 for some tools i created years back that Can’t easily update to the lastest VS. In this batch output i see that its linking to the VS 2003… OI Would I be able to remove that, make the solution and then reinstall 2003 and everything be good with the UE4 Engine on a compilation level?

VS120COMNTOOLS=F:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\

****** 32-bit toolchain: ****** 
 
 Volume in drive F is Gateway
 Volume Serial Number is 683B-110F

 Directory of F:\Users\kevin.mitchell\Desktop

03/16/2015  12:48 PM    <DIR>          .
03/16/2015  12:48 PM    <DIR>          ..
03/16/2015  12:43 PM               811 34402-get_vs_environment.bat
03/16/2015  12:48 PM    <DIR>          Cleanmeup
03/16/2015  12:48 PM               123 info.txt
               2 File(s)            934 bytes
               3 Dir(s)  799,059,070,976 bytes free
 
PATH=C:\Windows\SYSTEM32;C:\Windows;C:\Windows\SYSTEM32\WBEM;C:\Windows\SYSTEM32\WINDOWSPOWERSHELL\V1.0\;C:\PROGRAM FILES (X86)\ATI TECHNOLOGIES\ATI.ACE\CORE-STATIC;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\TOOLS\BINN\VSSHELL\COMMON7\IDE\;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\DTS\BINN\;F:\PROGRAM FILES\AMD\CODEANALYST\BIN;C:\PROGRAM FILES (X86)\AMD\CODEANALYST\BIN;F:\PROGRAM FILES (X86)\CVSNT;C:\PROGRAM FILES\COMMON FILES\AUTODESK SHARED\;;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;F:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\CVSNT\;C:\cygwin64\bin;C:\Tools 
 
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\ 
 
LIB=C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\

****** x86-amd64 toolchain: ******

 Volume in drive F is Gateway
 Volume Serial Number is 683B-110F

 Directory of F:\Users\kevin.mitchell\Desktop

03/16/2015  12:48 PM    <DIR>          .
03/16/2015  12:48 PM    <DIR>          ..
03/16/2015  12:43 PM               811 34402-get_vs_environment.bat
03/16/2015  12:48 PM    <DIR>          Cleanmeup
03/16/2015  12:48 PM             1,704 info.txt
               2 File(s)          2,515 bytes
               3 Dir(s)  799,059,066,880 bytes free
 
PATH=C:\Windows\SYSTEM32;C:\Windows;C:\Windows\SYSTEM32\WBEM;C:\Windows\SYSTEM32\WINDOWSPOWERSHELL\V1.0\;C:\PROGRAM FILES (X86)\ATI TECHNOLOGIES\ATI.ACE\CORE-STATIC;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\TOOLS\BINN\VSSHELL\COMMON7\IDE\;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\DTS\BINN\;F:\PROGRAM FILES\AMD\CODEANALYST\BIN;C:\PROGRAM FILES (X86)\AMD\CODEANALYST\BIN;F:\PROGRAM FILES (X86)\CVSNT;C:\PROGRAM FILES\COMMON FILES\AUTODESK SHARED\;;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;F:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\CVSNT\;C:\cygwin64\bin;C:\Tools 
 
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\ 
 
LIB=C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\

I can’t say for certain however it would be worth trying to remove 2003 and then compiling the engine. Also the .bat file returned a desktop directory which seems odd. If VS is installed on your desktop I would try re-installing it to the default location.

My OS the CDrive but because its a small SSD I have moced my desktop locations to my F drive that’s why it appears that way.

Uninstalled 2003 :

VS120COMNTOOLS=F:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
 
****** 32-bit toolchain: ****** 
 
 Volume in drive F is Gateway
 Volume Serial Number is 683B-110F

 Directory of F:\Users\kevin.mitchell\Desktop

03/16/2015  12:48 PM    <DIR>          .
03/16/2015  12:48 PM    <DIR>          ..
03/16/2015  12:43 PM               811 34402-get_vs_environment.bat
03/16/2015  12:48 PM    <DIR>          Cleanmeup
03/16/2015  01:44 PM               123 info.txt
               2 File(s)            934 bytes
               3 Dir(s)  799,336,017,920 bytes free
 
PATH=C:\Windows\SYSTEM32;C:\Windows;C:\Windows\SYSTEM32\WBEM;C:\Windows\SYSTEM32\WINDOWSPOWERSHELL\V1.0\;C:\PROGRAM FILES (X86)\ATI TECHNOLOGIES\ATI.ACE\CORE-STATIC;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\TOOLS\BINN\VSSHELL\COMMON7\IDE\;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\DTS\BINN\;F:\PROGRAM FILES\AMD\CODEANALYST\BIN;C:\PROGRAM FILES (X86)\AMD\CODEANALYST\BIN;F:\PROGRAM FILES (X86)\CVSNT;C:\PROGRAM FILES\COMMON FILES\AUTODESK SHARED\;;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;F:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\CVSNT\;C:\cygwin64\bin;C:\Tools 
 
INCLUDE= 
 
LIB=

Okay I updated the enviorment vars to point to the correct path for vs:
link text

Also this is where every instance of msbuild is on my there is not one in the tools directory any more according to some other post i have found:

http://blogs.msdn.com/b/visualstudio/archive/2013/07/24/msbuild-is-now-part-of-visual-studio.aspx

Also if i load CMD i can type msbuild in the command line and it works. So there has to be something hard coded some where that I can not find…

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\kevin.mitchell>msbuild
Microsoft (R) Build Engine version 12.0.31101.0
[Microsoft .NET Framework, version 4.0.30319.18408]
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1003: Specify a project or solution file. The current worki

C:\Users\kevin.mitchell>