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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:46:24+00:00 2026-06-13T22:46:24+00:00

I have problem with nuget packet management when using a shared project among different

  • 0

I have problem with nuget packet management when using a shared project among different solutions which are located in different directories. One of the solution is using nuget, other one is not.
The problem is that the packet manager adds a line into .csproj file:

a busy cat

Now as the nuget packet management is only used among the shared project, a solution to the problem would be to change $(SolutionDir) to $(ProjectDir). This works and solves the problem for now.

Now whenever reopening the solution which has nuget packet management enabled, it automatically adds the same line (as shown on the picture above) into the shared project .csproj file, which again breaks loading the project from the other solution.

How to prevent the automatic generation of that import clause or is there any other elegant solution to the problem?

  • 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-13T22:46:25+00:00Added an answer on June 13, 2026 at 10:46 pm

    Enabling NuGet Package restore in the solution that doesn’t use NuGet should fix your problem (right click the solution, enable package restore). While you aren’t using NuGet in that project it doesn’t really hurt to have that option turned on.

    Personally I try never reference the same project from multiple solutions, and turn them into private NuGet packages instead. It can be a bit of a pain to development like this, as you need to create the new package, deploy then install it in your other project. But it solves many other headaches, like the one you’re currently having and having developers accidentally break other projects when they check in.

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

Sidebar

Related Questions

I have problem with my query on C, I’m using the oci8 driver. This
I have a problem which I cannot seem figure out. Your help will be
I have problem with parsing XML file using XLTS. <html xmlns=http://www.w3.org/1999/xhtml xml:lang=pl> <body style=margin-top:
I have been using NuGet for quite some time on a particular PC. Now,
I have problem adding entity framework model to my project. Here is what I
I'm currently moving my project to Visual Studio 2012 and start using nuget. So
I have enabled NuGet Package Restore in my solution. I am using nuget.exe version
I'm using now Entity framework- but it's a problem shared between all ORM's and
We got a MVC project running and we seem to have problem refreshing .less
I have basically loaded Elmah assemblies and installed the package using the NuGet plug-in.

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.