# Can't generate project files because "UE4 requires the NuGet Package Manager" when it is already installed

**URL:** <https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447>\
**Category:** Pipeline & Plugins\
**Tags:** generateprojectfiles, source, unreal-engine, Visual-Studio, question\
**Created:** [September 8, 2018, 11:32pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447 "2018-09-08T23:32:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvitech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mvitech](https://forums.unrealengine.com/u/mvitech)\
**Post date:** [September 8, 2018, 11:32pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447/1 "2018-09-08T23:32:11Z")

</div>

I’m getting this error when generating project files for VS2017 by running GenerateProjectFiles.bat from UE 4.20.2 source (Github release). I have NuGet installed and it’s still coming up with this error regardless:

> UE4 requires the NuGet Package Manager  
> to be installed to use “C:\Program  
> Files (x86)\Microsoft Visual  
> Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe”.  
> Please run the Visual Studio Installer  
> and add it from the individual  
> components list (in the ‘Code Tools’  
> category).

I even tried uninstalling VS2017 completely, then reinstalling along with Build Tools and the required dependencies, in order to confirm it’s not an issue with NuGet on my local machine. This was all working fine with a 4.19 build.

Any ideas to resolve or bypass this error?

Error in cmd:

 ![253148-ue4-err.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/b/d3b1ff0065bce976636367e079ca7f5ceb559111.png)

Already have NuGet installed:

 ![253147-ue4-err2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/b/3db0a092c31850d98b84f29907d8bf69b359e04a.png)

---

<div class="post-metadata">

**Author:** ![mvitech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mvitech](https://forums.unrealengine.com/u/mvitech)\
**Post date:** [September 10, 2018, 6:40am UTC](https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447/2 "2018-09-10T06:40:41Z")

</div>

I ended up simply commenting out the line in GenerateProjectFiles.bat where it returns an error if NuGet isn’t found. I believe this is a bug.

---

<div class="post-metadata">

**Author:** ![Element808](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Element808](https://forums.unrealengine.com/u/Element808)\
**Post date:** [November 11, 2018, 7:25am UTC](https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447/3 "2018-11-11T07:25:06Z")

</div>

Found a solution to this. You have to actually install Nuget Package Manager on the separate MSBuild Tools Extension, not just within Visual Studio 2017. So even though it seems like I bug, it’s just not documented that well but is actually reporting accurately.

Here’s the steps to fix it:

1. Open Visual Studio 2017.
2. Go to Tools \> Get Tools and Features… and wait for the Visual Studio Installer to pop up.
3. It may default to "Modifying – Visual Studio 2017, just close out of this screen.
4. You’ll be back on the main Visual Studio Installer screen, and if you have MSBuild Tools installed, you’ll see 2 products “Visual Studio Build Tools 2017” and "Visual Studio 2017.
5. Click on the Modify button under Visual Studio Build Tools 2017 and go to “Individual Components”
6. Under the Individual Components tab, you’ll see a subsection called “Code tools”, make sure both NuGet checkboxes are checked.
7. Click the “Modify” button in the bottom right corner of this screen, and let it install.

Should be good after that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3479319d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3479319d](https://forums.unrealengine.com/u/anonymous_user_3479319d)\
**Post date:** [December 14, 2018, 2:03pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447/4 "2018-12-14T14:03:10Z")

</div>

Elemet808’s solution works. Thanks

---

<div class="post-metadata">

**Author:** ![monsterkodi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@monsterkodi](https://forums.unrealengine.com/u/monsterkodi)\
**Post date:** [August 20, 2019, 1:25pm UTC](https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447/5 "2019-08-20T13:25:40Z")

</div>

Thanks a lot for this solution.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a9d2fa87](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a9d2fa87](https://forums.unrealengine.com/u/anonymous_user_a9d2fa87)\
**Post date:** [September 10, 2019, 8:07am UTC](https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447/6 "2019-09-10T08:07:30Z")

</div>

Thanks! ^^

---

<div class="post-metadata">

**Author:** ![muxiyuan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@muxiyuan](https://forums.unrealengine.com/u/muxiyuan)\
**Post date:** [May 14, 2021, 6:04am UTC](https://forums.unrealengine.com/t/cant-generate-project-files-because-ue4-requires-the-nuget-package-manager-when-it-is-already-installed/433447/7 "2021-05-14T06:04:28Z")

</div>

Thanks ！！！
