From scratch :
- Create a class library A in net framework 4.7.2
- Reference a nuget package, ex : Newtonsoft
- Migrate class library A to Package Reference mode
- Generate nuget package for class library A
- Create a console application B in net framework 4.7.2
- Reference class library A
- Migrate console application B to Package Reference mode
My issue is that Newtonsoft is not copied in output of console application B, so :
If I use a function of A in B which has newtonsoft object in signature : error of compilation => need to reference Newtonsoft in console application B
If I use a function of A in B which use newtonsoft object in its body : error on runtime => FileNotFoundException