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…