Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Best practices to keep track of dependencies on code in private NuGet package

$
0
0

Within several projects I worked in, there would be one or more NuGet packages in a private feed for common code.

When just adding new functions / classes to these NuGet packages there is no issue, but when you want to remove or refactor methods then you would like to know

  • what projects (consuming the private NuGet package) need to be updated / refactored as well
  • what code in the private NuGet package might actually have become redundant (so that it can be removed immediately)

I'm wondering what practices people have to keep track of this?

Options I could think of are:

  • maintaining a "mega solution" (a solution containing all projects of your team) containing your NuGet project as a ProjectReference instead of as a PackageReference so that you can use Visual Studios reference tracking features (see below)
  • just doing the refactoring you want in the private NuGet, publishing it as a new version and fixing the consuming projects when they update to the new version

enter image description here


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>