Skip to content
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

System.PlatformNotSupportedException in .Net Standard 2.0 #87

Open
andeq opened this issue Feb 17, 2021 · 2 comments
Open

System.PlatformNotSupportedException in .Net Standard 2.0 #87

andeq opened this issue Feb 17, 2021 · 2 comments

Comments

@andeq
Copy link

andeq commented Feb 17, 2021

We are currently developing a UWP App which should use Flee for Expression Evaluation. Unfortunately in the Release Build we get a System.PlatformNotSupportedException.

System.PlatformNotSupportedException: 'Dynamic code generation is not supported on this platform.'

at System.Reflection.Emit.DynamicMethod..ctor(String name, Type returnType, Type[] parameterTypes) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Reflection\Emit\ReflectionEmitThrower.cs:line 11 at Flee.InternalTypes.Expression1.CreateDynamicMethod()
at Flee.InternalTypes.Expression1.Compile(String expression, ExpressionOptions options) at Flee.InternalTypes.Expression1..ctor(String expression, ExpressionContext context, Boolean isGeneric)`

Flee should support .Net Standard 2.0, but apparently DynamicMethod isn`t supported in .Net Standard 2.0: DynamicMethod Class

How can this be possible? How can we use Flee with .Net Standard 2.0 and UWP?

@jl0pd
Copy link

jl0pd commented Mar 5, 2021

Library need to use multi-targeting and add net461, netcoreapp2.0, uap10.0 or maybe others to list of targets. Docs

@hunkydoryrepair
Copy link
Contributor

Library need to use multi-targeting and add net461, netcoreapp2.0, uap10.0 or maybe others to list of targets. Docs

How would this resolve the issue of UWP not supporting dynamic code generation? Cannot use Reflection.Emit, which is pretty much all Flee does. It generates dynamic code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants