-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NUnit.Engine 3.12.0 .NET Core and Binary serialization #939
Comments
Any update on this issue please? |
HI @bouchraRekhadda - believe you're seeing #828. That issue essentially is just waiting for someone to pick it up and investigate - we'd love some help, if you'd be able? I'll close this issue as a duplicate, but thanks for providing another repro. 🙂 |
@bouchraRekhadda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
When using NUnit.Engine 3.12.0 to run tests (targeting .NET Core 3.1) doing binary serialization, tests fail with
System.Runtime.Serialization.SerializationException
.How to reproduce
Sample code:
Then run test above using NUnit.ConsoleRunner.NetCore (which is using NUnit.Engine 3.12.0). For my case it was:
%userprofile%\.nuget\packages\nunit.consolerunner.netcore\3.12.0-beta1\tools\nunit3-console.exe D:\ForNUnit\bin\Debug\netcoreapp3.1\UnitTests.dll
Expected behavior
Actual behavior
I think it is related to using a costume AssemblyLoadContext for NUnit;
UnitTests.dll
is indeed loaded in NUnit AssemblyLoadContext and not in the Default, but it seems likeSystem.Runtime.Serialization.FormatterServices.Desirialize
is trying to load it from the Default.What would you advise for this use case?
Thank you in advance.
The text was updated successfully, but these errors were encountered: