I have created a .NET Standard project where I installed the version 4.4.4
of the System.ServiceModel.Http
nuget package. This package include also the dll System.ServiceModel.Primitives
... I add image:
I have created a nuget package from my project with the command
.\nuget.exe pack MyProjectFile.csproj -Build -ExcludeEmptyDirectories -IncludeReferencedProjects -OutputDirectory MyOutputDir
Now I must install this package in another solution, in a .NET Framework project. But for some reason when I start the project I obtain this error:
Could not load file or assembly 'System.ServiceModel.Primitives, Version=4.2.0.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The versione 4.2.0.3
of the dll System.ServiceModel.Primitives
is inside the package version 4.4.4
I have edited my .NET Standard project file in this way:
<PackageReference Include="System.ServiceModel.Primitives" Version="4.4.4" />
<PackageReference Include="System.ServiceModel.Http" Version="4.4.4" />
But when I install the package in my .NET Project I still receive that error. No external package has been included in my package... What do I miss?
Thank you
EDIT
I also expected, when I install my nuget package, a window appear and tell me something like "You need to install also the Package A and the Package B. Continue or not?". Nothing appear instead....