Problem referencing other projects with Nuget-references

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
Rune Halfdan Holst Huseby
Posts: 1
Joined: Thu Dec 19, 2019 1:43 pm

Problem referencing other projects with Nuget-references

Post 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.
Post Reply