Questions tagged [nuget]
NuGet is the package and dependency manager for the Microsoft development platform including .NET.
48
questions
1
vote
1
answer
63
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 ...
0
votes
0
answers
38
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 ...
0
votes
3
answers
900
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 ...
0
votes
1
answer
641
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 ...
0
votes
0
answers
36
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 ...
0
votes
1
answer
151
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 ...
-3
votes
1
answer
39
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?
...
4
votes
1
answer
509
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 ...
2
votes
1
answer
1k
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 ...
1
vote
0
answers
87
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.
...
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....
2
votes
2
answers
737
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 ...
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 ...
1
vote
2
answers
345
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 ...
2
votes
1
answer
814
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 ...
0
votes
0
answers
130
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 ...
1
vote
1
answer
61
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 ...
1
vote
1
answer
202
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 ...
0
votes
1
answer
609
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 ...
0
votes
1
answer
121
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 ...
0
votes
1
answer
436
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 ...
3
votes
1
answer
771
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 ...
0
votes
2
answers
817
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 ...
4
votes
0
answers
797
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 ...
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 ...
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 ...
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 ...
9
votes
4
answers
5k
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 ...
0
votes
1
answer
228
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 ...
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 ...
1
vote
1
answer
394
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 ...
3
votes
1
answer
517
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 ...
3
votes
1
answer
901
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.
...
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....
2
votes
3
answers
215
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 ...
1
vote
0
answers
932
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 ...
5
votes
1
answer
954
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 ...
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-...
4
votes
1
answer
427
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 ...
1
vote
0
answers
94
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 ...
1
vote
1
answer
121
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 ...
1
vote
2
answers
504
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 ...
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. ...
4
votes
1
answer
650
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 ...
0
votes
2
answers
179
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 ...
2
votes
0
answers
810
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 ...
1
vote
2
answers
165
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 ...
43
votes
4
answers
29k
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 ...