Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8201951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:59:38+00:00 2026-06-07T06:59:38+00:00

I get the following error in the Ouput window: D:\{solutionPath}\.nuget\nuget.targets(76,9): error : D:\{solutionPath}\.nuget\nuget.targets(76,9): error

  • 0

I get the following error in the Ouput window:

D:\{solutionPath}\.nuget\nuget.targets(76,9): error : 
D:\{solutionPath}\.nuget\nuget.targets(76,9): error : Unhandled Exception: OutOfMemoryException.
D:\{solutionPath}\.nuget\nuget.targets(76,9): error MSB3073: The command ""D:\{solutionPath}\.nuget\nuget.exe" install "D:\{pathToConfigLocation}\packages.config" -source "" -o "D:\{solutionPath}\packages"" exited with code -1.

The above is with the NuGet.targets as it comes.

D:\{solutionPath}\.nuget\nuget.targets(76,9): error : 
D:\{solutionPath}\.nuget\nuget.targets(76,9): error : Unhandled Exception: OutOfMemoryException.
D:\{solutionPath}\.nuget\nuget.targets(76,9): error MSB3073: The command ""D:\{solutionPath}\.nuget\nuget.exe" install "D:\{pathToConfigLocation}\packages.config" -source "{localPackageDir}" -o "D:\{solutionPath}\packages"" exited with code -1.

Is with my package source in the NuGet.targets

When the build is taking place it creates as many nuget.exe processes as it takes for it to use up all the memory, then it fails and has another go at it.

I have taken the command and run it via cmd.

"D:\{longPah}\.nuget\nuget.exe" install "D:\{longPah}\packages.config" -source "\\{longPah}\NuGetPackages" -o "D:\{longPah}\packages"

This gives me the following error:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl
y 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or
 one of its dependencies. Exception from HRESULT: 0x800705AF
   at Bootstrapper.Program.Main(String[] args)

I have .net 4 on the machine.

Please help if you can.

Thanks,
David

EDIT

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Company.Common.Library" version="0.1.2" targetFramework="net35" />
</packages>

packages.config as requested.

EDIT

I have tried running the command via Visual studio command prompt (running as administrator) and it throws the following exception:

Unhandled Exception: OutOfMemoryException.

EDIT – POSSIBLE FIX

I think I have found the problem… its seems to be to do with the nuget.exe thats inside the .nuget folder.

I have several solutions and found a couple that work, waisted loads of time looking at file perms (was advised that was the issue) then thought to check the nuget.exe properties in each of the solutions.

In the solutions that worked I found:

enter image description here

In the solutions that wouldn’t I found:

enter image description here

As you can see, the file size of the two is drastically different. All the projects got added by different people in the team, Could this be an issue with the version of nuget installed on the dev’s machines?

If so does anyone know which version of nuget causes the above issue when you select to enable package restore for the solution? I have the latest version of NuGet installed on my machine btw.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:59:39+00:00Added an answer on June 7, 2026 at 6:59 am

    Both of them will cause the error. The smaller file is just a shell that passes commands to a real version that it downloads to %LOCALAPPDATA%\NuGet. It checks for newer versions every 10 days.

    Take a look at this issue: http://nuget.codeplex.com/workitem/2390 (nuget package restore assumes internet access) – could be that the 18K shell is trying to download the full nuget.exe to the %LOCALAPPDATA%\NuGet folder and can’t for some reason.

    When NuGet 2.0 was released it came with an opt-in consent for Package Restore. Take a look at http://blog.nuget.org/20120619/nuget-2.0-released.html and http://blog.nuget.org/20120518/package-restore-and-consent.html, which details what needs to be done to get it to work.

    Alternatively you can permanently accept the entire consent by using the NugetEnablePackageRestore package – http://nuget.org/packages/NuGetEnablePackageRestore – note that this fix will fix it for all future users including build servers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When running the following command: rvm install 1.9.3 I get the following output: Error:
I get following error (SyntaxError): missing ] after element list when using eval function.
I get following error message, when I try to run git rebase -i for
I get following error when deploying on test server with II6 and Framework 3.5
I get following error when trying to access Xampp from a network I've tried
I get following error: 2012-04-04 23:46:18.374 istiqlaltv[17121:e903] -[istiqlaltvViewController moviePlayBackDidFinish]: unrecognized selector sent to instance
When I type import sqlite3 in Python 2.5 interpreter (C:\Python25\Python), I get following error:
I am using the code as described in this question. However get following error
I get the following error even when my JAVA_HOME is set correctly. C:\workspace-sts-2.8.0.RELEASE\JBClient\target>echo %JAVA_HOME%
I get the following error on my Cloud Foundry installation when I try to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.