Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [nuget]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
115 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 ...
user avatar
  • 204
0 votes
0 answers
22 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 ...
user avatar
0 votes
1 answer
47 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 ...
user avatar
-3 votes
1 answer
37 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? ...
user avatar
4 votes
1 answer
206 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 ...
user avatar
2 votes
1 answer
294 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 ...
user avatar
  • 149
0 votes
0 answers
66 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. ...
user avatar
5 votes
3 answers
546 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....
user avatar
2 votes
2 answers
578 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 ...
user avatar
  • 35.5k
5 votes
2 answers
1k 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 ...
user avatar
1 vote
2 answers
287 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 ...
user avatar
2 votes
1 answer
706 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 ...
user avatar
0 votes
0 answers
79 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 ...
user avatar
1 vote
1 answer
57 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 ...
user avatar
  • 1,214
1 vote
1 answer
138 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 ...
user avatar
  • 170
0 votes
1 answer
539 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 ...
user avatar
  • 364
0 votes
1 answer
119 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 ...
user avatar
0 votes
1 answer
334 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 ...
user avatar
  • 103
3 votes
1 answer
652 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 ...
user avatar
  • 33
0 votes
2 answers
564 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 ...
user avatar
4 votes
0 answers
613 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 ...
user avatar
1 vote
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 ...
user avatar
3 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 ...
user avatar
  • 1,356
4 votes
1 answer
84 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 ...
user avatar
  • 149
9 votes
3 answers
4k 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 ...
user avatar
0 votes
1 answer
163 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 ...
user avatar
  • 199
5 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 ...
user avatar
1 vote
1 answer
380 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 ...
user avatar
  • 113
3 votes
1 answer
503 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 ...
user avatar
3 votes
1 answer
829 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. ...
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....
user avatar
  • 183
2 votes
3 answers
190 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 ...
user avatar
  • 714
1 vote
0 answers
930 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 ...
user avatar
  • 387
5 votes
1 answer
943 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 ...
user avatar
  • 2,845
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-...
user avatar
  • 421
4 votes
1 answer
397 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 ...
user avatar
1 vote
0 answers
93 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 ...
user avatar
1 vote
1 answer
112 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 ...
user avatar
  • 479
1 vote
2 answers
496 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 ...
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. ...
user avatar
  • 1,082
4 votes
1 answer
643 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 ...
user avatar
  • 263
0 votes
2 answers
170 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 ...
user avatar
  • 642
2 votes
0 answers
804 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 ...
user avatar
1 vote
2 answers
153 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 ...
user avatar
  • 111
42 votes
3 answers
26k 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 ...
user avatar