I have a project Customer.Invoices that is a nuget package the csproj file has the following below. The PackageReference Customer.Prices is a nuget package referenced within the Customer.Invoices project.
The Customer.Groups project reference is just a referenced project within the Customer.Invoices solution.
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.4" />
<PackageReference Include="Customer.Prices" Version="1.0.0.14" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CustomerGroups\CustomerGroups.csproj" />
</ItemGroup>
I now am using the Customer.Invoices nuget package which is the main package I need in another C# project. I am running into two issues:
1.) if I don't also add the Customer.Prices nuget package it says it can't find the assembly when running a method in the Customer.Invoices project.
2.) I am getting an assembly not found for the CustomerGroups project.
How do I resolve these issues as I know there are include assets etc. but not sure how to handle the dependencies. For the second issue not sure if this would work is adding privateassets=all to the project reference like so as this is a .Net Core 2.2 project:
<ProjectReference PrivateAssets="all" Include="..\CustomerGroups\CustomerGroups.csproj" />
Again not sure that is correct as I don't quite understand yet the assets but also need to figure out can I have the Customer.Prices assembly working without also having to add that nuget package.
Thanks for any help