# Workaround tips for "Error Generating Visual Studio Project Files"

**URL:** <https://forums.unrealengine.com/t/workaround-tips-for-error-generating-visual-studio-project-files/231453>\
**Category:** Plugins\
**Tags:** unreal-engine, UE5-0\
**Created:** [May 27, 2021, 4:40am UTC](https://forums.unrealengine.com/t/workaround-tips-for-error-generating-visual-studio-project-files/231453 "2021-05-27T04:40:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lagacy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lagacy](https://forums.unrealengine.com/u/lagacy)\
**Post date:** [May 27, 2021, 4:40am UTC](https://forums.unrealengine.com/t/workaround-tips-for-error-generating-visual-studio-project-files/231453/1 "2021-05-27T04:40:02Z")

</div>

I just found a way to generate vs project until this is fixed.

If you are on Windows, create a .bat file and add this(Ps: For the first element, use the correct path to the UE5 installation):

“C:\Program Files\Epic Games\UE\_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe” -projectfiles -project=“Path\To\Your\Project\YourGame.uproject” -game -rocket -progress

Double click on it and should be good

---

<div class="post-metadata">

**Author:** ![ixicalibur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ixicalibur](https://forums.unrealengine.com/u/ixicalibur)\
**Post date:** [May 27, 2021, 7:24am UTC](https://forums.unrealengine.com/t/workaround-tips-for-error-generating-visual-studio-project-files/231453/2 "2021-05-27T07:24:03Z")

</div>

I’ve been banging my head against the wall for hours now trying to get my project to launch, never had issues upgrading all the way back from 4.4  
I’ve manually disabled all 3rd party plugins in my .uproject, running vs 2019, dot net 5/3 installed from the other posts. VS works perfectly in UE4. The only C++ code is an empty dumby relic of the past

```
C:\Program Files\Epic Games\UE_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool>UnrealBuildTool.exe -projectfiles -project=“C:\Users\pryde\Documents\UnrealProjects\UE5\ShadowWars\ShadowWars.uproject” -game -rocket -progress
ERROR: Unhandled exception: System.Exception: Unable to find project file based on argument "C:\Users\pryde\Documents\UnrealProjects\UE5\ShadowWars\ShadowWars.uproject"
          at UnrealBuildTool.GenerateProjectFilesMode.TryParseProjectFileArgument(CommandLineArguments Arguments, FileReference& ProjectFile) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 302
          at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 83
          at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 565

```

I have also changed the path to the project and get the same error:  
About to give up tbh.

```
C:\Program Files\Epic Games\UE_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool>UnrealBuildTool.exe -projectfiles -project=“C:\Users\pryde\Documents\Projects\Five\ShadowWars\ShadowWars.uproject” -game -Engine -rocket -progress
ERROR: Unhandled exception: System.Exception: Unable to find project file based on argument "C:\Users\pryde\Documents\Projects\Five\ShadowWars\ShadowWars.uproject"

```

 ![2021-05-27 16_47_33-Workaround tips for Error Generating Visual Studio Project Files - Development](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/9/59d585c209008a45737a70c9ef5fb0112fe4a44c.png)

[Update in this thread](https://forums.unrealengine.com/t/generate-cpp-project-couldnt-find-unrealbuildtool/231288/13)

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [May 27, 2021, 6:24pm UTC](https://forums.unrealengine.com/t/workaround-tips-for-error-generating-visual-studio-project-files/231453/3 "2021-05-27T18:24:12Z")

</div>

It should be you forget to put quotes on your directory structure/path as Epic Games has a space in it 😃

“C:\Program Files\Epic Games\UE\_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool\>UnrealBuildTool.exe” -projectfiles -project=“C:\Users\pryde\Documents\Projects\Five\ShadowWars\ShadowWars.uproject” -game -Engine -rocket -progress

---

<div class="post-metadata">

**Author:** ![ixicalibur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ixicalibur](https://forums.unrealengine.com/u/ixicalibur)\
**Post date:** [May 27, 2021, 9:23pm UTC](https://forums.unrealengine.com/t/workaround-tips-for-error-generating-visual-studio-project-files/231453/4 "2021-05-27T21:23:10Z")

</div>

every time I run the bat I get an empty file called UnrealBuildTool.exeö and nothing else.  
iv even changed the directory names so they have no spaces and even then when launching the unreal build tool from cmd I get the same error.  
example:  
cd C:\Program Files\Epic Games\UE\_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool  
UnrealBuildTool.exe -projectfiles -project=“C:\Users\pryde\Documents\Projects\Five\ShadowWars\ShadowWars.uproject” -game -Engine -rocket -progress  
error Unable to find project file. its honestly very frustrating lol, iv been working on this project on and off since 4.4 and never encountered a problem upgrading like this.

---

<div class="post-metadata">

**Author:** ![KillerSneak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killersneak/32/754802_2.png) [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Post date:** [May 27, 2021, 11:08pm UTC](https://forums.unrealengine.com/t/workaround-tips-for-error-generating-visual-studio-project-files/231453/5 "2021-05-27T23:08:06Z")

</div>

> [@KillerSneak](#):
>
> “C:\Program Files\Epic Games\UE\_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool\>UnrealBuildTool.exe” -projectfiles -project=“C:\Users\pryde\Documents\Projects\Five\ShadowWars\ShadowWars.uproject” -game -Engine -rocket -progress

are you putting quotes around the first part as well? as the Program Files and Epic Games part has a space you need quotes around the directory structure so it should be:

“C:\Program Files\Epic Games\UE\_5.0EA\Engine\Binaries\DotNET\UnrealBuildTool  
UnrealBuildTool.exe” -projectfiles -project=“C:\Users\pryde\Documents\Projects\Five\ShadowWars\ShadowWars.uproject” -game -Engine -rocket -progress
