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

"Type 'DefaultExpressionOwner' is not accessible to the expression" when using .NET native tool chain #90

Open
inkmike opened this issue Apr 9, 2021 · 2 comments

Comments

@inkmike
Copy link

inkmike commented Apr 9, 2021

This exception occurs on a UWP project, only when "Compile with .NET native tool chain" is ticked in build configuration.

Exception occurs on the following statement (I assume that the actual expression string itself is not relevant, but included it anyway):

expressionContext.CompileDynamic("calc_days(StartDate_1-EndDate_1)");

Thoughts? Unfortunately .NET native tool chain is required for publishing apps to the microsoft store, so I'm at a loss at the moment.

@inkmike
Copy link
Author

inkmike commented Apr 9, 2021

After integrating with the non-compiled version, I made an edit to the DefaultExpressionOwner class to make it public, which allowed me to get past that error (no idea why this would only be a problem on .NET native tool chain though).

I then received the following error: Dynamic code generation is not supported on this platform.

Oh dear. So I guess this library simply doesn't support UWP then :( If there is a known workaround then that would be great to know. Otherwise feel free to just close this issue.

@hunkydoryrepair
Copy link
Contributor

Microsoft no longer requires UWP to go onto the Microsoft Store if I heard correctly.

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

2 participants