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

Visual Studio not recognizing "Page" or "Grid" when Uno App re opened giving error Type Page not found #12776

Closed
AlistairMcKinnon opened this issue Jul 4, 2023 · 4 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools triage/untriaged Indicates an issue requires triaging or verification

Comments

@AlistairMcKinnon
Copy link

Current behavior

Create New Uno Platform App in Visual Studio
Open MainPage.xaml, make small amendment by adding a TextBox
Hover over "Page", it says Microsoft.UI.XAML.Controls.Page
Run Windows version, everything works fine.
Run Android version on attached Android device, works fine
Close Visual Studio
Open Visual Studio
Re open App
Now MainPage.xaml underlines Page and Grid and says type not found are you missing an assembly.

Expected behavior

When App reopened, it should recognise Page and Grid as part of Microsoft.UI.XAML.Controls.

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

WebAssembly, Android, iOS, macOS (AppKit), Mac Catalyst, Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Linux Framebuffer), Skia (Tizen), Windows

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@AlistairMcKinnon AlistairMcKinnon added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jul 4, 2023
@jeromelaban
Copy link
Member

Thanks for the report. Could you indicate which version of visual studio you are using? (17.?) Also, could you take a screenshot of your visual studio when this happens?

@jeromelaban jeromelaban added the project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools label Jul 10, 2023
@AlistairMcKinnon
Copy link
Author

AlistairMcKinnon commented Jul 10, 2023 via email

@MartinZikmund
Copy link
Member

This is because you always need to select Windows as the target in the top left dropdown here in the XAML code window -
image

@MartinZikmund
Copy link
Member

See #8774 for more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

3 participants