Replies: 1 comment
-
Unfortunately, at this time, the designer is not supported in this type of class libraries. Microsoft never supported designing UIs using "SDK-style projects" with UWP, and this is causing the issue you're seeing. One way to work around this is to create an "original" UAP csproj (called Note that using .NET 6 and WinAppSDK, there is no designer either, but this time because Microsoft is not providing one yet, but that may change in the future. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I had a good solution here before. Thanks for the quick reply.
Now I'm making library for user controls with default template.
And I'd like to develop user controls target net5.0 (because I need this library for webassembly project)
So I only need net5, but if I set it like below, the Xaml Designer is not visible.
<TargetFrameworks>net5.0</TargetFrameworks>
I finally found through a search that this was due to the target framework, and I add uap like this.
<TargetFrameworks>uap10.0.19041;net5.0</TargetFrameworks>
But this was not the solution. There is Designer now but it said,
"Some assembly references are missing"
Any ideas on how to solve this?
I'll attach the whole source of .csproj just in case.
(and just in case, I added netstandard2.0 too, but the designer was gone)
Beta Was this translation helpful? Give feedback.
All reactions