How do I specify a project reference as a Nuget package reference when...
I have a Visual Studio solution that has (as well as test projects etc) two projects that will end up as Nuget packages. ProjectA doesn't have any dependencies, but ProjectB depends on ProjectA. The...
View ArticleGit submodules vs Nuget packages
Our team has experimented with git submodules for some core CRUD functionality shared by most of our products. We have also successfully used Nuget packages (self-hosted now) for some common...
View ArticleHow to include XML Documentation from Nuget Package in csproj build output
I have a nuget package that includes an XML documentation file.packages/MyPackage.1.0.0/lib/net472/MyPackage.xmlHowever when I build my project, I want to include this xml file in the output.So when...
View ArticleHow do you add additional files to a NuGet package in Visual Studio 2017?
I recently moved to Visual Studio 2017 Community Edition. It has 2 nice new features:You don't need to explicitly include your source files in the csproj. It does this automatically.It can build NuGet...
View ArticleError: Unable to load the service index for source when adding to Visual Studio
I created a CI/CD pipeline within a custom GitLab instance. In the pipeline I create and push the code as NuGet packages. Now I want to use GitLab as package source in Visual Studio and I get the...
View Article.Net Core 3.1/Standard 2.1 NU1101 for ALL packages
"NU1101 Unable to find package . No packages exist with this id in source(s): C:\Users..."I started having this problem in my blazor app and I cannot seem to find a fix. Nothing seems to work...I run...
View ArticleGitVersion not creating the correct NuGet package version number in Azure...
I'm trying to set up a pipeline in Azure DevOps Server that will automatically publish private NuGet packages.I'm using GitVersion to determine the package version number. I want to use the tag...
View ArticleHow to automatically update NuGet packages to latest available version
I have two repositories, and I need compiled libraries from one repository in the other. I don't want to manually check repo1 for updated libraries, and copy/commit to repo2, because that is stupid....
View ArticleRunning a asp.net core project inside another/new machine
I have developed a project using asp.net core and angular. I have installed some Nuget packages inside my project. Now I have cpoied my whole project file in another machine. I have installed the same...
View Articlenuget for Microsoft.DirectX.DirectSound, C# [duplicate]
I was trying to build this project.I have Microsoft Visual Studio 2019, Windows version Windows 10, 64 ProfessionalI would like to build the Solution, but I get a problem with...
View ArticleHow to connect to MySQL Database?
New to C# programming, I'd like to be able to access MySQL Databases. I know MySQL connector/NET and MySQL for Visual Studio are required for C# development. Do I need to install them into my app? Is...
View ArticleCreating a NuGet package with .exe file as content file
I have been trying to include the 7za.exe file from the installed 7ZipCLI NuGet package into a project, of which I want a NuGet package to be created. The NuGet package targets both.NET Standard2.0 and...
View ArticleNuget Content Files in .Net core solution not getting copied when installing...
I'm not able to copy the content static files in my .Net core web application project that I added when creating the nuget package using nuget package explorer. Same thing get copied correctly in .Net...
View ArticleHow to make the Nuget restore work faster?
We are building CD pipeline using VSTS hosted build servers. It takes more than 3 minutes to restore Nuget. This is too much time. How can I make it run faster? Is there any sort of caching system we...
View ArticleI need export DbContext to library in nuget package for reutilize in various...
i have this code in my libraryEntrega.cs[Key][DatabaseGenerated(DatabaseGeneratedOption.Identity)]public int Id { get; set; }public string NumeroDeEnvio { get; set; }public int MotivoId { get; set;...
View ArticleNuget Error NU3037,NU3028 When publishing container
We are facing the following errors when publishing a container to Fargate from visual studio. the solution was all working fine till this evening.... docker build: from source...
View ArticleSelf signed certificate in certificate chain - NuGetToolInstaller
I have configured an Azure DevOps pipeline. When I try to run NuGetToolInstaller, I received ERR:self signed certificate in certificate chain. What is the solution to this error?
View ArticleMulti target net frameworks conflicts
I have a Nuget package project that targets framework netcoreapp2.2. I'm trying to use it for an application that contains other projects targeting frameworks netstandard2.0;netcoreapp3.1.This is what...
View ArticleDifferent nuget-packages loaded when using MSBuild than building using Visual...
I also posted this question on the microsoft forums:https://docs.microsoft.com/en-us/answers/questions/249621/different-nuget-packages-are-used-when-compiling-u.htmlConsider following .csproj...
View ArticleHow do I manage local nuget packages safely?
Our team has just started working with Nuget packages, for now locally on a local server directory. The problem starts when several developers are working on the same project and both accidentally up...
View Article