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 7638151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:06:15+00:00 2026-05-31T08:06:15+00:00

I have installed a NuGet package (which we have developed in the project) in

  • 0

I have installed a NuGet package (which we have developed in the project) in a VS-project. When I run Update-Package on the nuget project i Get:

Update-Package : 'Project name' was not installed in any project. Update failed.
At line:1 char:15
+ Update-Package <<<<  Project name
    + CategoryInfo          : NotSpecified: (:) [Update-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand

I have checked in the package.config file to make sure the NuGet package is defined, and it is. Any clues?

  • 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-05-31T08:06:16+00:00Added an answer on May 31, 2026 at 8:06 am

    I am working on the same project as Tomas and I have tried to figure out when this problem occurs and why. It seems this happens when we have one or more old versions of a package in the packages folder and try to issue the ‘update-package’ command.

    Before issuing the command our packages folder and config looks like this:

    Packages folder:

    Common.WebApi.1.0.0.109
    Common.WebApi.1.0.0.110
    

    Packages config:

    <packages>
        <package id="Common.WebApi" version="1.0.0.110" />
        <package id="System.Json" version="4.0.20126.16343" />
        <package id="System.Net.Http" version="2.0.20126.16343" />
    </packages>
    

    Now, when issuing ‘update-package Common.WebApi’ we get the error:

    Update-Package : ‘OPF.Common.WebApi’ was not installed in any project. Update failed.

    To fix it I delete the old package ‘Common.WebApi.1.0.0.109’ from the packages folder and rerun the command which then works.

    The obvious question is: Why do I have an old package in my packages folder? This happens to us because we do not committ our own packages to source control. Instead, we use the approach which is described here: http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages

    The ‘old package problem’ occurs in this situation:
    1. Developer A updates a package and commits the package.config to source control
    2. Developer B gets the latest version from source control and receives the updated package.config
    3. Developer B builds the project and the new package is created in his packages folder
    4. Nuget does not delete developer B’s old package from his packages folder so Developer B now has both the old package and the new package in his packages folder, but only a reference in the package.config to the new version.

    To me, it seems that Nuget does not expect there to be more than one version of a package in the packages folder and becomes confused when you to try to update a package that has multiple versions [in the packages folder] even though you only reference a single package from the package.config.

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

Sidebar

Related Questions

I have various Nuget packages installed to my solution. Some in my domain project
I have basically loaded Elmah assemblies and installed the package using the NuGet plug-in.
I have installed StructureMap using Nuget . I do not want to checkin the
I have installed the latest embedded binaries from NuGet and am using this code
I have an inherited project in Visual Studio 2008 for which I need to
I noticed that when I installed StructureMap from NuGet into my ASP.NET MVC3 project,
I am creating NuGet package and for that I have created Nuspec manifest file.
Ok, so I installed EF 4.2 from NuGet. Just did Install-Package EntityFramework. That's all
I've installed Migrator.NET using NuGet but when I attempt to run a migration using
I have installed petapoco RelationExtensions from NUGET and it`s firing error message: Error 4

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.