I have 2 dlls let's say A.dll and B.dll. They both are independent. I have to create a NuGet package. and After install the nuget package both the dll should add as a reference in client application. Both the dll on .NetStandard 2.1
. So now I am updating the A.dll project file
<Project Sdk="Microsoft.NET.Sdk"><ItemGroup><None Include="..\managedDll\**\*" Pack="true" PackagePath="\managedLibs"><Link>dependencies\%(RecursiveDir)/%(FileName)%(Extension)</Link><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None></ItemGroup><PropertyGroup><TargetFramework>netstandard2.1</TargetFramework><GeneratePackageOnBuild>true</GeneratePackageOnBuild><Authors>xxx</Authors><Company>Demo</Company><Version>1.0.0.3</Version><AssemblyVersion>1.0.0.3</AssemblyVersion><FileVersion>1.0.0.3</FileVersion></PropertyGroup></Project>
So after build the project A. NuGet package is created and while installing this package B.dll file is copied in C:\Users\xxxxxx\.nuget\packages\managedclasslib\1.0.0.3\managedLibs
But I have to add B.dll in also in application.