fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Problem referencing other projects with Nuget-references

Problem referencing other projects with Nuget-references 06 May 2020 15:25 #14389

  • Rune Halfdan Holst Huseby's Avatar

  • Rune Halfdan Holst Huseby

  • Topic Author


  • Posts: 1
  • 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:
    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.

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1