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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:35:58+00:00 2026-06-01T05:35:58+00:00

NuGet Package Restore seems to be the correct way to combine NuGet with source-control

  • 0

NuGet Package Restore seems to be the correct way to combine NuGet with source-control (in my case TFS), for example in this answer and in the first comment to this closed question. NuGet Package Restore allows a solution fetched from source-control and built on another dev’ machine to automatically fetch the required NuGet packages.

To add NuGet Package Restore to a solution you right click on the solution and then select Enable NuGet Package Restore. That “added a solution folder named .nuget containing NuGet.exe and a NuGet.targets MsBuild file. It also changed every project in the solution to import the NuGet.targets MsBuild task.” (Quote from http://docs.nuget.org/docs/Workflows/Using-NuGet-without-committing-packages). But some of the projects in the solution I am working on are utility projects, shared between different solutions and between different developers and they do not require references handled by NuGet.

How do I enable NuGet Package Restore but preclude certain projects in the solution from the NuGet build task set-up?

  • 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-01T05:36:00+00:00Added an answer on June 1, 2026 at 5:36 am

    At the moment, NuGet Package Restore has some limitations and can’t be restricted to specific projects.
    There’s an existing NuGet work item that would make this possible :
    #1812 – Enable Package Restore – Selective Projects

    Please comment/vote on it to bump the priority since it’s currently backlogged.

    Note: at the surface, .csproj files appears to have a property to support turning off NuGet Package Restore, but due to another issue, it keeps turning back on : NuGet command line forces package restore

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

Sidebar

Related Questions

NuGet package restore does not play well with the PostSharp package, this is of
FluentAssertions nuget package for 1.7 seems to be missing the references for System.Xml and
I've got an open source nuget package AttributeRouting . Currently the packaged assemblies reference
Is there a way to create a NuGet package where when the package is
When I attempt to upgrade a NUGET package, for example Productivity Power Tools, I
I've created nuget package with code transformation. My package contains several source files (which
When enabling NuGet package restore, it adds the following to my solution: /.nuget /.nuget/NuGet.exe
I understand that Nuget Package Restore is a relatively new feature that combs through
I'm trying to use NuGet package restore from the command line on a build
I'm trying to create my first NuGet package. I don't know why my install.ps1

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.