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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:38:53+00:00 2026-06-17T17:38:53+00:00

I created a nuget package, and then installed it, only to find it created

  • 0

I created a nuget package, and then installed it, only to find it created a directory structure I did not expect. I’d like to know what I did wrong or what I can do to achieve my intended result. The documentation says:

Files in the content folder are copied to the root of your application when the package is installed

But that is not what happened!

To clarify this question, I invoked nuget pack -BasePath staging on the following folder structure:

  • staging/
    • content/
      • MyPlugin/
        • foo.txt

From there, when I executed nuget install MyPackage -o .\Target I expected the following results:

  • Target/
    • MyPlugin/
      • foo.txt

Instead what I got was this:

  • Target/
    • MyPlugin.1.0.1.0/
      • MyPlugin.1.0.1.0.nupkg
      • content/
        • MyPlugin/
          • foo.txt

Clearly the result differed from my expected result in two key ways:

  1. I thought the installed .nupkg would be stored somewhere else – in a cache location.
  2. From the documentation, I understood that content is a special folder which is used during packing, but does not get created on install.

What did I misunderstand? How can I fix this?

Please Note: I am purposely not specifying a packages.config or SolutionDirectory, because I intend for this nuget install to be executed at run-time to add plugins to an application. Perhaps I could be convinced to use a packages.config, but I don’t think that specifically is affecting the results I’m currently getting.

  • 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-17T17:38:54+00:00Added an answer on June 17, 2026 at 5:38 pm

    what you see is the intended behavior of the nuget.exe command line. Quoting Balliauw:

    Because the NuGet command line has no context for the solution or projects you might want to target, it will limit the install operation to the extraction of the package in a specific place.
    Balliauw, Maarten; Decoster, Xavier (2012-03-07). Pro NuGet (Professional Apress) (Kindle Locations 1114-1115). Apress. Kindle Edition.

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

Sidebar

Related Questions

I created a new MVC4 Application and install nuget package Breeze.MVC4WebApiClientSample Inside the BreezeSampleController,
I've created nuget package with code transformation. My package contains several source files (which
I would like to build Nuget package for my add-on which will be used
I created a NuGet package of my own that has a dependency on another
I've created an MVC 3 web application project and used the Nuget Package Manager
Powershell beginner here.. So I've created a Nuget package with a powershell script. The
I just created a custom nuget package with the goal of packaging our Devart
I have created a nuget package for a library we use at my company.
I have installed StructureMap using Nuget . I do not want to checkin the
I am creating NuGet package and for that I have created Nuspec manifest file.

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.