Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [nuget]

NuGet is the package and dependency manager for the Microsoft development platform including .NET.

Filter by
Sorted by
Tagged with
2 votes
1 answer
730 views

Best practices for team development with NuGet projects in .Net

TL;DR I want to change the way our current enterprise code base is constructed to utilize NuGet packages for the inter-project references, but that seems to present some challenges when considering ...
James Feazell's user avatar
1 vote
1 answer
165 views

Advice on Developing Shared Public Libraries in Visual Studio

I’m looking for some advice on best practices for Visual Studio workflows. I maintain several C# libraries which I use in various projects I develop. I also make them available publicly, as packages ...
Mark Olbert's user avatar
0 votes
0 answers
142 views

Pattern for Nuget Package (Abstractions, DepedencyInjections, etc.)

I've been interested in following what other successful libraries are doing with their nuget packages. Unfortunately, I can't seem to find any materials to read online and I don't even know what to ...
Lawrence's user avatar
  • 123
2 votes
3 answers
1k views

Is It Considered Good Practice to Use Dependency Injection with Strategies from a NuGet Package?

I am developing a NuGet package which contains shared code for various ASP.NET Core projects. I am planning to use the strategy pattern to solve the same problem in a few different ways. So there will ...
Treker's user avatar
  • 199
0 votes
1 answer
847 views

How to implement automatic SemVer from code changes [closed]

Goal I'm working on libraries published as nuget packages and I would like the version of those packages to update automatically based on the changes I make. In other words, I would like something ...
Batesias's user avatar
  • 244
0 votes
0 answers
40 views

Nuget Libraries - Avoid version Conflicts

we have a private nuget repo setup available for all department developers, each developers can contribute and deploy their own reusable library which gets uploaded for the entire dev team to use ...
Immanuel's user avatar
0 votes
1 answer
197 views

Azure DevOps Change nuget.config in CI/CD process

I'm currently working on a project which uses azure function apps, we also create a data access layers for each function app which are built as nuget packages and are then published to a private nuget ...
morris295's user avatar
  • 109
-3 votes
1 answer
40 views

Publishing packages for personal and commercial use [closed]

I have a pretty high level question for you and am looking for some different experiences and input. Does anyone publish their own private or public packages for their own personal convenience? ...
Harry Stuart's user avatar
4 votes
1 answer
675 views

Alternative for C# Library distribution within an Organisation

I am looking for advice on how to manage shared code between several projects more effectively. Currently, we have several applications that use the same common backbone of infrastructure code, from ...
Gregory William Bryant's user avatar
3 votes
1 answer
2k views

Strategies to organize multiple projects which may reference each other and managed by different teams in Git?

First actually I don't think Git is a specific involved tool here, it can be any other Source/Version Control tool (TFS, SVN, ...). The point here is how to deal with the scenario in which I have ...
Hopeless's user avatar
  • 159
1 vote
0 answers
94 views

How to debug your collegues NuGet package

Disclaimer: This is a rather broad topic and there is probably no clear right/wrong. Still I would like to exchange experiences with experts of huge projects to learn and improve work between teams. ...
tomwaitforitmy's user avatar
5 votes
3 answers
1k views

Single massive solution - good idea?

I am analysing a Windows Forms application in .NET Framework 4.5.2 with 4 separate solutions with a combined 1.5million lines of code (and 10 years of development) Libraries.sln (54 projects) Tools....
Dave Mateer's user avatar
2 votes
2 answers
881 views

Risk of NuGet package adding new reference DLL

Had an interesting discussion with our architect. It was related to replacing a plain DLL reference with a NuGet package. His worry was "If it is possible for single NuGet package to add multiple DLL ...
Euphoric's user avatar
  • 37.5k
5 votes
2 answers
2k views

Should a solution containing projects exposed as nuget reference them as package?

Scaling down for the sake of the example, my project is structured like this: solution X project A project B Project A is exposed as nuget packages externally, project B need ...
Giulio Caccin's user avatar
1 vote
2 answers
356 views

NuGet Hell - by design our NuGet repo doesn't yet include the new functionality we reference

We have a solution called 'MySolution'. We have another solution which tests this solution called 'MyTests' which tests 'MySolution'. When in debug mode, 'MyTests' reference 'Mysolution' with a path ...
JᴀʏMᴇᴇ's user avatar
2 votes
1 answer
871 views

NuGet versioning with gitflow

Some background information to our actual situation. We are migrating from TFS VC to git. We've a ASP .NET Web API with many different Controller Libraries (>30 assemblies). Many of them are ...
carstinho's user avatar
0 votes
0 answers
172 views

Using Azure Artifacts views for hiding in-development packages

My team are looking to push our shared code to a private NuGet feed in Azure Artifacts. At present the plan is to set the package version in our csproj files and set up CI on the master branch of each ...
setagana's user avatar
1 vote
1 answer
63 views

Should libraries be packaged together based on similar traits?

I just started a new job and one of my first tasks is to create local nuget packages from the existing libraries, to help with versioning, maintenance, etc. This task had already been started by ...
Corey P's user avatar
  • 1,224
1 vote
1 answer
213 views

working with multiple libraries and versions using nuget local feed

so I am in a position where I doubt my solution to the following problem: - we are developing a wpf desktop application with c# and have a decent plugin system. This increases the libraries we have ...
Mightee's user avatar
  • 179
0 votes
1 answer
637 views

Structuring dependencies for .Net core across Nuget packages

I am working on a microservices system in c# (.Net Core) where for simplicity we place each microservice in it's own repo. Some services are very generic and some are very similar (although for ...
zaitsman's user avatar
  • 384
0 votes
1 answer
122 views

C# Separate Online Store into Different Solutions and Nugets

I am creating an Online Shopping Cart store. It is built through Net MVC Core. There is a Front End View website: html, css, razor. Then we have backend code design for Customers: including shopping ...
MarkAllison's user avatar
0 votes
1 answer
491 views

Best practice to develop nuget packages for base functionality alongside main application, which consumes the packages

I am trying to extract some core functionality out of my main application code, that doesn't change very often (e.g. logging, utils etc.). Our current Situation: A dev branch with all code in it. A ...
Jannik's user avatar
  • 103
3 votes
1 answer
854 views

Avoid or minimize merge conflicts while using NuGet and GitFlow

Here's our problem - we have several solutions with multiple projects using our own nuget packages. We're following GitFlow, but not SemVer. Every time we're developing bigger feature or epic we want ...
JayL's user avatar
  • 33
0 votes
2 answers
909 views

How to test for backwards compatibility in NuGet?

Let us say I am working on a project with maybe 100 nuget packages installed and 50 of these packages require an update. I would ike to get a clear overview on which package updates cause any ...
Just van der Veeken's user avatar
4 votes
0 answers
872 views

How to manage multiple NuGet packages in GitHub and Artifactory?

My colleagues and I are in the process of re-architecting our system. The old system is a ASP.NET monolith using TFS for source control. The new system is made up of ASP.NET Core microservices using ...
Ray Saltrelli's user avatar
2 votes
1 answer
1k views

How to share common NuGet package settings between projects (csproj 2017)

I would like to share common NuGet package values between projects in the same solution, such as Author, Company, Copyright, and Product. Previously (using the 2015 project format), I would use a ...
Matt DiTrolio's user avatar
5 votes
2 answers
2k views

Best practices for developing NuGet package alongside consumer?

I'm writing a NuGet package mainly for data access and utility functions that is going to be consumed by multiple web applications, but there will be one main web application that is going to drive ...
Jez's user avatar
  • 1,318
4 votes
1 answer
87 views

NuGet on VSTS strategy

I have the following scenario: We want to create nuget packages on VSTS We want the packages to be available for an external party (preferably no login, tokens...?) For our developers we want to have ...
ʃʈɑɲ's user avatar
  • 149
10 votes
4 answers
6k views

When to create a nuget package vs creating a web api

As our devs are writing internal applications, often times we need to share code. There are various ways to do this, but it usually comes down to creating a nuget package on a shared server or hosting ...
goku_da_master's user avatar
0 votes
1 answer
267 views

How can I do production like deployments using a artifact server that enforces semantic versioning with artifacts that haven't received a version yet?

Just a small bit of background. Right now my team tags release candidates in version control. I've learned that this may not be the best thing to do because we still have to go through user acceptance ...
arjabbar's user avatar
  • 199
6 votes
2 answers
2k views

One project per solution to create nuget packages

I have a solution with 10 projects, I used to distribute this as an SDK with an installer back in the day. To change that in VSTS I added the steps to create a package per project, every time I make ...
Juan Zamudio's user avatar
1 vote
1 answer
401 views

Project.json and NuGet on a Xamarin.Forms Project

I am relatively new to Visual Studio (I've spent most of my life on Linux) and I am fairly befuddled about the Windows build process, especially regarding NuGet. I have a Xamarin PCL solution with ...
johnnyb's user avatar
  • 113
3 votes
1 answer
530 views

How can I be sure that an unofficially uploaded NuGet package is genuine?

I've come across a few cases lately where a package on NuGet has a name that starts with "Microsoft" but is actually uploaded by someone else. Take Microsoft.TestApi for example. Ostensibly this is a ...
Stephen Hewlett's user avatar
3 votes
1 answer
934 views

Using private NuGet repository and Jenkins to handle dependencies

I am experimenting with using a private NuGet repository and jenkins to deal with dependencies. Let's say we have exe A and libraries B,C and D. Exe A depends on library B which depends on C and D. ...
Kevin Pluck's user avatar
8 votes
2 answers
4k views

Policies on NuGet dependencies versions when developing a library

I'm building a C# library and have some dependencies through NuGet packages. I'm trying to minimise entry barrier and using the very early versions of dependency packages. For example I use Newtonsoft....
trailmax's user avatar
  • 183
2 votes
3 answers
218 views

Store Nuget\NPM packages in VCS with source or not?

Is it good practice to store Nuget or NPM (or other) packages in the source control with the source, or to keep them in some other place? My gut says they belong with the source, however a package ...
BanksySan's user avatar
  • 724
1 vote
0 answers
933 views

VS2015 & Git Submodules

We have a few projects in my organization that are being developed in parallel and I have found that they are increasingly using similar Utility/Logging/Etc functionalities that they have as separate ...
Web Dev's user avatar
  • 425
5 votes
1 answer
970 views

How to version NuGet packages in CI world

I am trying to implement CI for one of my projects that generates a NuGet package which is published to our private NuGet repository. Obviously, for dependent applications to see the new packages as ...
SonOfPirate's user avatar
  • 2,915
26 votes
3 answers
5k views

Managing in-house NuGet packages with source code access

We have a lot of in-house libraries that we would like to share between projects inside the company. These are some of the requirements: library sources are stored in repositories separated from end-...
Dyppl's user avatar
  • 421
4 votes
1 answer
437 views

Is NuGet vulnerable to this typosquatting attack?

A recently-published article demonstrates a way to make "typo-squatting" attacks on popular programming package managers. It singles out Python's pip, Ruby's gem and Node's npm systems, and shows ...
Mason Wheeler's user avatar
1 vote
0 answers
95 views

Continous integration of only MyCompanies nuget packages

I am trying to do a nightly package integration with one of our projects that consumes 6 other internal teams’ -PreRelease packages. Background Info We have our own internal ProGet Server that ...
Flightdeck73's user avatar
1 vote
1 answer
123 views

Removing old (semantically versioned) NuGet packages

We are running into issues with our NuGet server when we reach 100 packages. We have multiple packages, all semantically versioned (3 digits), from multiple projects, in our NuGet repository. What ...
NMrt's user avatar
  • 479
1 vote
2 answers
507 views

.NET solution dependency workflow for a small dev team

We have a team of 5 developers working on a product and are at a crossroads trying to determine a better way (if one exists) of managing development workflow and project dependencies. We currently ...
joeldow's user avatar
  • 121
0 votes
1 answer
3k views

Best practices in managing nuget repositories [closed]

I've been involved in a project using Visual Studio 2012 that has multiple solutions and multiple projects. In most cases, one solution will have to refer to the library build in a different project. ...
aggietech's user avatar
  • 1,082
4 votes
1 answer
651 views

Starting to use TFS - handling internal dependant libraries - local nuget?

Approach I'm trying to get up and running with TFS 2013. This is my priority order for implementing it. Start using it for existing Git Repo projects. Then get automated builds working from check ...
David C's user avatar
  • 273
0 votes
2 answers
183 views

SOA: Make each level of a service stack a package (NuGet etc.)?

Say I have a service that has the following hierarchy: Controller Business Logic Data Adapter All of these make up a service that presents an HTTP API that can be used by other services. Together ...
Mike L.'s user avatar
  • 632
2 votes
0 answers
813 views

GitFlow with TFS 2013, bumping versions

We have TFS 2013 only for version control, Team City for building, a Nuget server and Visual Studio 2013. Little late in the game but we haven't set guidelines for getting code from development into ...
Matthew Campbell's user avatar
1 vote
2 answers
166 views

Implementing Continuous Integration with a volatile hierarchy of library dependencies

Recently my company setup a build server using Bamboo and a private Nuget Feed which is populated by the successful builds being deployed from the build server. There is a hierarchy of projects under ...
jth41's user avatar
  • 111
43 votes
4 answers
30k views

Get license information for all used NuGet packages

To keep our house in order, I want to automatically assemble licenses for project dependencies in our documentation, rather than having to add them manually. Does anybody know a simple way to ...
Byron Ross's user avatar