# Generate Projects Produces UnrealBuildTool Excepion

**URL:** <https://forums.unrealengine.com/t/generate-projects-produces-unrealbuildtool-excepion/341579>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [December 16, 2015, 4:35am UTC](https://forums.unrealengine.com/t/generate-projects-produces-unrealbuildtool-excepion/341579 "2015-12-16T04:35:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![qdelpeche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/qdelpeche/32/776509_2.png) [@qdelpeche](https://forums.unrealengine.com/u/qdelpeche)\
**Post date:** [December 16, 2015, 4:35am UTC](https://forums.unrealengine.com/t/generate-projects-produces-unrealbuildtool-excepion/341579/1 "2015-12-16T04:35:16Z")

</div>

Due to a recent hardware failure, I was forced to re-install my PC.

I then proceeded to download Unreal Engine and clone the source of the Engine.

After running Setup.bat on the source folder, when I run GenerateProjectFiles.bat … I get the following error:

```
C:\Development\EpicGames\UnrealEngine>Setup.bat
Checking dependencies (excluding Mac, Android, Linux)...
Registering git hooks...
Installing prerequisites...

C:\Development\EpicGames\UnrealEngine>GenerateProjectFiles.bat
Setting up Unreal Engine 4 project files...
UnrealBuildTool Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: path1
   at System.IO.Path.Combine(String path1, String path2)
   at UnrealBuildTool.VCProjectFileGenerator.ConfigureProjectFileGeneration(Stri
ng[] Arguments, Boolean& IncludeAllPlatforms) in d:\Development\EpicGames\Unreal
Engine\Engine\Source\Programs\UnrealBuildTool\System\VCProjectFileGenerator.cs:l
ine 236
   at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(String[] Argumen
ts, Boolean& bSuccess) in d:\Development\EpicGames\UnrealEngine\Engine\Source\Pr
ograms\UnrealBuildTool\System\ProjectFileGenerator.cs:line 295
   at UnrealBuildTool.UnrealBuildTool.GenerateProjectFiles(ProjectFileGenerator
Generator, String[] Arguments) in d:\Development\EpicGames\UnrealEngine\Engine\S
ource\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line 1457
   at UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(Str
ing[] Arguments) in d:\Development\EpicGames\UnrealEngine\Engine\Source\Programs
\UnrealBuildTool\System\UnrealBuildTool.cs:line 1261

GenerateProjectFiles ERROR: UnrealBuildTool was unable to generate project files
.

Press any key to continue . . .

C:\Development\EpicGames\UnrealEngine>

```

As stated … this is a clean install … no other errors were received.

Thanks

---

<div class="post-metadata">

**Author:** ![qdelpeche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/qdelpeche/32/776509_2.png) [@qdelpeche](https://forums.unrealengine.com/u/qdelpeche)\
**Post date:** [December 16, 2015, 6:19am UTC](https://forums.unrealengine.com/t/generate-projects-produces-unrealbuildtool-excepion/341579/2 "2015-12-16T06:19:59Z")

</div>

I have ensured the Visual Studio 2012 is fully updated as well … and I am still getting these errors.

---

<div class="post-metadata">

**Author:** ![qdelpeche](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/qdelpeche/32/776509_2.png) [@qdelpeche](https://forums.unrealengine.com/u/qdelpeche)\
**Post date:** [December 16, 2015, 9:08am UTC](https://forums.unrealengine.com/t/generate-projects-produces-unrealbuildtool-excepion/341579/3 "2015-12-16T09:08:49Z")

</div>

Never mind … figured it out … wrong version of Visual Studio … _sigh_.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a61eb923](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a61eb923](https://forums.unrealengine.com/u/anonymous_user_a61eb923)\
**Post date:** [January 18, 2016, 8:37am UTC](https://forums.unrealengine.com/t/generate-projects-produces-unrealbuildtool-excepion/341579/4 "2016-01-18T08:37:38Z")

</div>

The problem is your unreal engine build with a specific version of visual studio and now it can’t find the same version of visual studio. I think things can get done in a better way by epic.
