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
cannot serialize internal class? #3
Comments
Yes. MessagePack for C# create assembly per resolver and create dynamic formatter per resolver. var t = DynamicObjectResolver.Instance.GetFormatter<TestObject>();
// MessagePack.Formatters.TestObjectFormatter
Console.WriteLine(t.GetType().FullName);
// MessagePack.Resolvers.DynamicObjectResolver, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
Console.WriteLine(t.GetType().Assembly.FullName); Created assembly is same as standard assembly so can not access external internal type. Note: But I should output more informational exception message. |
Thank you for response,I understand. |
Thank you, I've added it. |
Great thanks. |
Thanks, closed. |
I don't know if this has been mentioned but you can workaround if you add the following lines to your project
This way |
Fix Live Unit Testing
Environment
MessagePack assembly version is 1.0.1
here is
dotnet --info
outputSteps to reproduce
compile the following source and run with
dotnet run
Expected Behavior
output two digits then exit 0
Actual Behavior
output following exception message
The text was updated successfully, but these errors were encountered: