-
Notifications
You must be signed in to change notification settings - Fork 746
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
UWP could not creat envet #11267
Comments
Are you using a shared project? |
Yes |
When I double click UI in xaml desingner , visual studio tell me that is error, it couldn't creat events, sometimes visual studio will breakdown when I double click。 |
This is a problem on Visual Studio side. Not something that Uno controls. However, the new templates no longer use a shared project, so in the new templates you will be able to create the event normally. |
How can I use the new templates ? |
@Youssef1313 Is it the next version ? |
If you are creating a project from scratch, the latest If you have an existing project, you probably need to manually migrate to the new structure. @jeromelaban Do we have any documentation for moving from shared project to class lib? |
I couldn't find the latest -dev solution template packages . This is newest version(4.7.37) in Visual Studio 2022 |
This is indeed an issue on Visual Studio's side caused by Shared Projects that we cannot fix for UWP applications. It is resolved when building WinAppSDK applications, using our latest template. If you want to stay on UWP, you may also try to create a cross-targeted library: |
Current behavior
Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
Yes
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia, Uno.SourceGenerationTasks, Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
NuGet package version(s)
No response
Affected platforms
Windows
IDE
No response
IDE version
Visual Studio 2022 17.5.0 Preview6.0
Relevant plugins
No response
Anything else we need to know?
I want creat event in UWP project
The text was updated successfully, but these errors were encountered: