Closed Nexxkinn closed 5 years ago
Strange that this is happening. My .net standard test work fine. It should have failed even for the simple calls. I will look into it and get back to you .
Thanks for the find.
I tested it again and it works fine with .net core 2.0+ without any issue. How are you consuming it?
It does works in debug mode. But it throws an error if you build it on release mode, in my experience.
Ok. i will try running in release mode. Thanks
It also works in release mode.
Could you give me a code sample i can test with?
Thanks,
As same as this code I upload in the previous issue. https://github.com/rpgmaker/NetJSON/issues/199#issuecomment-414015990
might be related to the issue is that System.Reflection.Emit is not supported in UWP's AOT compiler https://github.com/dotnet/corefx/issues/29808
Can you apply and check whether this solution works? https://github.com/mgravell/protobuf-net/issues/388 https://github.com/mgravell/protobuf-net/commit/72558ee322c51aea4fb7ec05eb92190a125f9e0f
I will take a look at it and let you know. Thanks
The changes was to remove Emitting of IL which i cannot remove since I need it in either dynamic assembly or dynamic method generation. Does DynamicMethod exists in UWP? if so then i can conditionally generate dynamic methods instead of seperate dynamic assembly.
The changes was to remove Emitting of IL which i cannot remove since I need it in either dynamic assembly or dynamic method generation. Does DynamicMethod exists in UWP? if so then i can conditionally generate dynamic methods instead of seperate dynamic assembly.
UWP ( and generally, any .Net Native-compiled apps ) doesn't support Reflection.Emit library, due to the nature of .Net Native apps to be run in AOT instead of JIT. I just realised this yesterday :/
Oh well, you can close this issue since it's .Net Native's problem instead.
Thanks for verifying. 😀
My app works on debug mode, but throws this error if I compile it in release mode
other computers from Microsoft also returns the same kind of error
might be related : Microsoft delisted System.Reflection.Emit.Lightweight for .NET Standard Should there be a .Net Standard 2.0 version of Reflection.Emit?