mattyboy;14218 wrote:Hi Michael
Yes, it is using that package. In fact, I am the author of that package! Is there something wrong with it?
Matt
Thanks for confirming this. We have been able to reproduce this consistently.
The package does something which works when building the software from within Visual Studio but not under NCrunch.
On this
line an explicit reference to the framework is added. With aspnetcore 3 MS added the concept of transitive references. From what I can see this normal FrameworkReference was added in the package during the preview phase. Maybe not everything was working as expected then. I haven't looked very deep into this, but I don't believe this is a recommended practice.
To bring NCrunch in line with how VS handles these added references we will now detect these explicitly defined FrameworkReferences and when we detect them we will no longer copy the transitive references discovered during the analysis.
Thanks for the help and bug reports, this is very much appreciated :)