Closed thomaslevesque closed 7 years ago
"Works on my box" - all the tests for this lib are passing on CI. @DixonDs Have you seen this one by chance?
Nope, I haven't seen it before now. But the issue is reproducible in a VS console application, so it doesn't seem to be LINQPad-specific.
I tried it in a xUnit test to be in exactly the same situation as in the example: same result. I tried targeting .NET 4.6.2 and 4.5, and .NET Core.
The fix will be in 1.0.1 in just a bit
The fix will be in 1.0.1 in just a bit
Thanks, it works now!
(Also, I seem to have posted to the wrong repo... didn't realize it was obsolete. Sorry about that)
I copied the example from the documentation in LINQPad, except the test method which I adapted as follows:
And I got the following exception (it is thrown on
container.GetInstance<IMathService>()
):Is this library supposed to be working? I tried the example from the doc after another failed attempt, which gave me a different exception (
MethodAccessException
onExpression.Lambda<T>
). Could it be because I'm running it in LINQPad?