xsharp.eu • Problem referencing other projects with Nuget-references
Page 1 of 1

Problem referencing other projects with Nuget-references

Posted: Wed May 06, 2020 1:25 pm
by Rune Halfdan Holst Huseby
Ran into a problem today, with a XSharp Test-project that references other C# test-projects.
The XSharp project only has reference to NUnit-package
The referenced C# project references Moq.dll. And Moq.dll has two dependencires:
https://www.nuget.org/packages/Moq/
Castle.Core
System.Threading.Tasks.Extensions
and TaskExtension references:
System.Runtime.CompilerServices.Unsafe

When buliding the reference C# dll, and Moq.dll is copied to bin-folder for the XSharp test project. But the Moq's dependent assemblies was not copied to output.
This broke the test, with 'assembly not found'-issue

I tried adding the nuget-references explicitly, but that broke (generate rebindings not implemented).

My solution now it to have direct Reference to the missing dependencies, but that is a hackish workaround.