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

UNO Platform XAML Errors #2859

Closed
aaamirrr2000 opened this issue Mar 22, 2020 · 1 comment
Closed

UNO Platform XAML Errors #2859

aaamirrr2000 opened this issue Mar 22, 2020 · 1 comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@aaamirrr2000
Copy link

UNO Platform is giving error "The type 'Page' does not support direct content." and "'MainPage' does not contain a definition for 'InitializeComponent' ...." but running correctly on UWP, Wasm, Android, etc. What is the solution? When this issue will be resolved?

@aaamirrr2000 aaamirrr2000 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Mar 22, 2020
@jeromelaban
Copy link
Member

Thanks for the report! This is a Visual Studio issue, which will be fixed when the C# Source Generator feature is going to be added. As a workaround, for C# once you have built the project, closing the solution and opening it again will fix the intellisense errors.

For XAML, there is no workaround yet, except setting the editor active project to the UWP project.

You can follow VS related issues here: #982

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants