Can't use Moq in Linqpad 6

Options
In Linqpad 5.40.00 using the Nuget Moq 4.10.0 the following code works fine:

var mock = new Mock();

mock.Setup(ifoo=>ifoo.GetValue()).Returns(5);
IFoo test = mock.Object;

In the 6.0.18 beta using the same Moq version I get a NotSupportedException with message "A non-collectible assembly may not reference a collectible assembly.".

Any ideas on what's going on? These are the first three lines of Main() and it blows up in mock.Object.

Zipped linq file attached.

Comments