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

Dependencies of nuget package are not copied to output folder

$
0
0

Visual Studio 2019 16.10.0.Net 5

I've made a nuget package for company internal use.In this package, i references Microsoft.Extensions.Hosting.WindowsServices which references many other packages:

References of Microsoft.Extensions.Hosting.WindowsServices

When i now use this nuget package in another project, then only my assembly (and few others) are copied to output folder, but many of the referenced assemblies are missing, like:

  • Microsoft.Extensions.Configuration.CommandLine.dll
  • Microsoft.Extensions.Configuration.UserSecrets.dll
  • Microsoft.Extensions.DependencyInjection.dll
  • Microsoft.Extensions.Logging.*

In the project, that i've build, there is CopyLocalLockFileAssemblies=true.What can i do, to copy the missing assemblies to output folder (without xcopy in PostBuild)?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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