Error MSB4175

Hello,

I downloaded the newest clone from github, and tried to start UE4 for the first time, I followed the exact procedure here for Windows: https://github.com/EpicGames/UnrealEngine

At step 5 when I try to build the UE4 project I get the following error:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets(214,5): error MSB4175: The task factory “CodeTaskFactory” could not be loaded from the assembly “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Build.Tasks.v12.0.dll”. Cannot execute a program. The command being executed was “C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe” /noconfig /fullpaths @“C:\Users\Alexander\AppData\Local\Temp\i2zzhkys.cmdline”.

I tried to fix this by searching on the internet for solutions, no one on the UE4 forums or answerhub seem to have the same problem. Also I tried to find it by searching on google, but the few people that have this problem is either

  • related to the nuget.exe (which is not present in the UE4 install, and which is not mentioned in my error either)
  • related to the Microsoft.Build.Tasks.v12.0.dll not being able to find it in the C:\Windows\Microsoft.NET\Framework\v4.0.30319\ folder. And for them the problem is that the file is found in the C:\Program Files (x86)\MSBuild\12.0\bin\ while it is searching for it in the folder mentioned before. But for me it is different. It is searching for the file in C:\Program Files (x86)\MSBuild\12.0\bin, and it cannot find it (Or at least not work properly with it). But the file is there! The C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Build.Tasks.v12.0.dll file exists in my situation!

I cannot seem to understand what the problem is, I tried to find fixes everywhere but none of them seem to be the same as my situation. I thought it could be a problem with visual studio 2010 and .NET 4.0 installed on my before. And now I had to switch to Visual Studio 2013 and .NET 4.5.1. So I tried to uninstall all visual studio 2010, 2012, 2013 and all .NET things I could find on my pc. Then I reinstalled 2013 and .NET 4.5.1 but the problem is still the same. Does anyone have any idea what is happening here, I cant seem to find any decent solution to fix this…

Hey SoulRyder-

Do you receive the same error if you try using the zip file rather than the clone? Using the zip file will save you the time of setting up a local repository and simply allow you to run both Setup.bat and GenerateProjectFiles.bat after unzipping the folder.

Hi ,

Thanks for the response. I tried to install it on another and it seemed to work fine (And the hardware from both pc’s is exactly the same) I will try what you suggested and otherwise I think reinstalling Windows 7 will do the trick for me too (There is not much content on the anyway).

Hey SoulRyder-

We haven’t heard back from you in a few days. Please let us know if reinstalling Windows was able to solve the problem for you. For now I am going to mark this post as resolved for tracking purposes but if you are still having problems let us know and we will reinvestigate.

Cheers

Sorry for forgetting to reply! I was able to fix it by installing Windows again. It work perfectly after that.