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

Preview Error/evaluation error #36

Open
pellet opened this issue Nov 21, 2018 · 2 comments
Open

Preview Error/evaluation error #36

pellet opened this issue Nov 21, 2018 · 2 comments

Comments

@pellet
Copy link

pellet commented Nov 21, 2018

In my Mac XamForms app I changed a buttons text from "A" to "B" then saw this in the app:

Feature `pattern matching' cannot be used because it is not part of the C# 7.0 language specification

If you need me to get more information somehow let me know, I couldn't see any logs in the application output and I'm not sure where else to look for logs sorry.

@ylatuya
Copy link
Owner

ylatuya commented Nov 21, 2018

Your view is using a feature from C# 7.0 and it seems that the evaluator does not support it. Can you try with a different view that does not uses pattern matching?
What Target Framework are you using?

  1. Xamarin.Mac Modern
  2. Xamarin.Mac Full
  3. Any of the unsupported frameworks

@pellet
Copy link
Author

pellet commented Nov 24, 2018

I'm targeting Xamarin.Mac Modern.
The code which was causing an issue was:
!(url is null) which is indeed pattern matching.

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