UserControl does not compile with WinAppSDK #16708
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
question
Further information is requested
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
When the WinAppSDK target is selected, my 2 UserControls don't compile:
Severity Code Description Project File Line Suppression State Details
Error WMC0001 Unknown type 'TitleWithAppControl' in XML namespace 'clr-namespace:ElementsTechnician.Presentation;assembly=Test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Test C:\Users\sebas\Downloads\ElementsTechnician\ElementsTechnician\Presentation\MainPage.xaml 111
It compiles fine with the other targets.
Expected behavior
It should compile with all targets.
My user control is simply a StackPanel with a TextBlock
How to reproduce it (as minimally and precisely as possible)
Open this sample app and compile Test.zip
Workaround
No response
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
No response
Affected platforms
Windows (WinAppSDK)
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: