The type or namespace name 'MainViewModel' could not be found in the global namespace (are you missing an assembly reference?) #19036
Labels
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
Current behavior
Getting error:
When creating a public property of the Type of the ViewModel (MVUX generated file) from the Page code behind.
Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
Using the default template, create an app and add a property of the type generated from the MVUX Model
Workaround
using internal instead of public
Works on UWP/WinUI
None
Environment
Uno.SourceGenerationTasks
NuGet package version(s)
"Uno.Sdk": "5.5.54"
Affected platforms
WebAssembly, Android, Skia (WPF), Skia (Linux X11), Skia (macOS), Skia (Linux Framebuffer), Skia (GTK)
IDE
Visual Studio 2022
IDE version
17.12.1
Relevant plugins
No response
Anything else we need to know?
It works on WinAppSDK Targets
The text was updated successfully, but these errors were encountered: