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

How to ignore dependencies for .NET Core during NuGet packaging?

$
0
0

I have my own NuGet packages located on a disk (local Nuget). I'm trying to not add the same DLL multiple times and get in a scenario like the image attached

I have tried the following code during packing but doesn't work

dotnet pack PathtoSolution\SystemCore.Services.Data --no-dependencies --output "G:\NuGetPackages"

However, during restoration to another project, the dependency comes back.

enter image description here

Is there a way to not include dependencies during the packing process or is ignoring at installation time my only option?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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