-
Notifications
You must be signed in to change notification settings - Fork 735
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
CSWinRT compilation issues #18464
Comments
I discovered the same thing on Saturday trying to help a user. I retried tonight with selecting only Skia, MVVM, Fluent and I have these unsafe errors as well. cc @jeromelaban the compilation master |
I encountered this issue as well, fixed it by rollbacking to visual studio version 17.11.4 |
I can confirm I also encountered the |
This is a breaking change that the WinUI team included that causes all sorts of trouble (tracked in microsoft/CsWinRT#1809). You can either set We'll include some of it in our templates to avoid this kind of friction. |
Also related to dotnet/sdk#43680 (comment) |
@jeromelaban This makes perfect sense. I have logged 3 new issues on the VS team. The quality of VS2022 is spiraling into the depths of Hades with every passing day. They keep bragging about all the "new" features while ignoring the litany of old bugs in their backlog. Now, would the disabling of CsWinRTAotOptimizerEnabled property be detrimental to any sort of necessary optimatization? I think that with @DavidM29 's observation that the latest update of VS caused this, would it not be more prudent to simply revert to the previous VS version? I update VS often in hopes that the issues I have raised with the VS team have been fixed.... With that said, one of my most recent issues I logged with the VS team was moved to the Maui team (which I still think is wrong - it should be in the WinUI team's queue,,). My guess these issues lie with the WinUI team. I'm sure you have seen the issue where the xaml page and it's code-behind get decoupled and the red squiggly lines and filling the output window with messages like: |
@jeromelaban Also, I cannot remember if I mentioned this issue that places an error banner across the top of VS: |
This is a separate issue, but most likely related to the other. It's a VS issue we're constantly chasing with every new version. It should be transitive, though. Are you able to constantly repro? |
Hi @mobynet1 . Could you please share the VS issue links you've created. Sometimes we are able to escalate certain issues, not to mention that sharing them on our discord and asking for upvotes helps rally our community to bubble up issues to VS Team? https://platform.uno/discord . |
Current behavior
Guys, I know you may be sick of me complaining about new solutions not working, but I am under such a severe time crunch at the moment, I am trying everything I can to get something to work.
I have been trying for the past week to get Maui control embedding to work. I was able to get it to work in at least two cases, it does not work consistently. I created yet again another new solution, and it does not compile when run on any platform other than the simple Windows platform. I get several issues when I just try to run the app as either a packaged or unpackaged Windows app. The errors are:
I get this when changing from
Desktop
toWinAppSDK Packaged
orWinAppSDK Unpackaged
. This error confuses me as this is a brand new solution that I have made no edits to. Then, as I was saying, to run the app as a packaged app, for instance, gives me a list of the same errors:I just started to see this particular error starting this past Saturday, October 12, 2024. I search the the dev folders for WinRT and could not find the file it is complaining about:
WinRTGenericInstantiation.g.cs
, nor could I find any instance of the stringWinRT
anywhere in the solution. I have no idea what to do with this error.When the app does start (as Desktop) the Maui controls are not displayed (which is the issue I have been bumping into for the past several days:
When I launch the app in Desktop mode, the output window also shows this error:
The specified framework 'Microsoft.WindowsDesktop.App' is not present in the previously loaded runtime.
I have placed this into a public GitHub repo:
https://github.com/mobynet1/UnoApp1-NewWithErrors
Expected behavior
I just want everything to cooperate and do what they're supposed to do.
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
na
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
Visual Studio 2022, Visual Studio Code, Rider Windows
IDE version
VS Code 1.94.2; Visual Studio 2022 Version 17.11.5; Rider 2024.2.6
Relevant plugins
No response
Anything else we need to know?
As I have indicated, I am being blocked at every turn by extremely low quality Microsoft components. gRPC failed. Visual Studio 2022 failed. And now, this. I need to get this done as there is a potential investor who is withholding any sort of funding until I can get a viable alpha demo going and I simply cannot get it done with the tools I have. I need Maui embedding in Uno to work!!
The text was updated successfully, but these errors were encountered: