x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

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:

alt text

Already have NuGet installed:

alt text

Product Version: UE Github Master branch
Tags:
ue4-err2.png (25.2 kB)
ue4-err.png (11.4 kB)
more ▼

asked Sep 08 '18 at 11:32 PM in Installation & Setup

avatar image

mvitech
21 1 5 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

more ▼

answered Sep 10 '18 at 06:40 AM

avatar image

mvitech
21 1 5 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Nov 11 '18 at 07:25 AM

avatar image

Element808
31 1 3 9

avatar image cagdasalagoz Dec 14 '18 at 02:03 PM

Elemet808's solution works. Thanks

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question