# How do I create the project solution for Visual Studio?

**URL:** <https://forums.unrealengine.com/t/how-do-i-create-the-project-solution-for-visual-studio/278945>\
**Category:** Pipeline & Plugins\
**Tags:** Versioning, unreal-engine, git, Visual-Studio, question\
**Created:** [March 29, 2014, 4:08pm UTC](https://forums.unrealengine.com/t/how-do-i-create-the-project-solution-for-visual-studio/278945 "2014-03-29T16:08:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hagg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hagg](https://forums.unrealengine.com/u/Hagg)\
**Post date:** [March 29, 2014, 4:08pm UTC](https://forums.unrealengine.com/t/how-do-i-create-the-project-solution-for-visual-studio/278945/1 "2014-03-29T16:08:00Z")

</div>

I’m attempting to setup a minimal Git repository but, I am unable to include the Visual Studio Solution (.sln) file as it has computer specific references. **How can I build a solution file that I can compile off of?**

Currently I have a git repository that contains only the few Binaries dlls, Config, Content, Source, and .uproject. With these files I can open the .uproject in the Unreal Editor, Select “Add Code to Project”, and this creates a VS Solution but, it does not compile. I can continue trying to compile that Solution and it will succeed but, this is an awful answer. Hopefully there is a more elegant way to setup a Solution for the source so my Team can easily pull from git and compile.

---

<div class="post-metadata">

**Author:** ![Hagg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hagg](https://forums.unrealengine.com/u/Hagg)\
**Post date:** [March 29, 2014, 8:01pm UTC](https://forums.unrealengine.com/t/how-do-i-create-the-project-solution-for-visual-studio/278945/2 "2014-03-29T20:01:00Z")

</div>

If you have access to the forums, this is the answer:

Right clicking the .uproject file and generating the Visual Studio solution.  
[link text](https://forums.unrealengine.com/showthread.php?1478-Git-Repository-with-only-the-Essentials&p=8515#post8515)

---

<div class="post-metadata">

**Author:** ![idbrii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@idbrii](https://forums.unrealengine.com/u/idbrii)\
**Post date:** [September 29, 2015, 12:44am UTC](https://forums.unrealengine.com/t/how-do-i-create-the-project-solution-for-visual-studio/278945/3 "2015-09-29T00:44:25Z")

</div>

Another solution: Call the GenerateProjectFiles.bat manually.

Here’s an example batch file that I put in the same folder as my uproject:

```
:: See docs for info on args: https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/ProjectFileGenerator/index.html
for %%A in ("%~f0\..") do set "project_folder=%%~nxA"
call "d:\UE4\Engine\Build\BatchFiles\GenerateProjectFiles.bat" -2013 -CurrentPlatform -NoShippingConfigs -Engine -Game %~dp0\%project_folder%.uproject

```

See also [this question](https://answers.unrealengine.com/questions/20805/shootergame-strategygame-cant-generate-visual-stud-1.html).

---

<div class="post-metadata">

**Author:** ![idbrii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@idbrii](https://forums.unrealengine.com/u/idbrii)\
**Post date:** [September 29, 2015, 12:46am UTC](https://forums.unrealengine.com/t/how-do-i-create-the-project-solution-for-visual-studio/278945/4 "2015-09-29T00:46:25Z")

</div>

If you don’t have a right click option to generate project files, see [RegisterShellCommands](https://answers.unrealengine.com/questions/21172/right-click-and-generate-visual-studio-projects-do.html) ([pictures here](http://www.davidmoore.info/blog/2014/09/05/fix-the-missing-right-click-menu-for-unreal-engine-projects-uproject/)).
