Closed jingkecn closed 1 year ago
Verified Repro with Visual Studio Enterprise 2022 main 17.2.0 Preview 2.0 [32219.17.main]. Repro Project: https://github.com/jingkecn/Microsoft.WinRT.Starter.git
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Hey @jingkecn it has been a while since you reported this. Is this still an issue with all the latest versions of .NET MAUI and Visual Studio? Thanks!
Hi @jingkecn. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
Hello @jfversluis, sorry for late reply. I just tried the latest versions of VS + MAUI Workload, the issue seems to be fixed. You can refer to the repo I mentioned before, I just updated it: https://github.com/jingkecn/Microsoft.WinRT.Starter/tree/app/main-maui
Description
TL;DR Project to reproduce: https://github.com/jingkecn/Microsoft.WinRT.Starter/tree/app/main-maui A .NET 6 console app Main.Console works fine w/ the C#/WinRT lib Lib.CsWinRT. However, when comes to the .NET 6 MAUI app Main.MAUI, it throws an exception:
PS: I follow the walkthrough guide of C#/WinRT: https://docs.microsoft.com/en-us/windows/uwp/csharp-winrt/net-projection-from-cppwinrt-component PPS: Remember to build at first the project Lib.CsWinRT to generate the NuGet package.
Any ideas?
Steps to Reproduce
PS:
Version with bug
Preview 10 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows, I was not able test on other platforms
Affected platform versions
Windows SDK 10.0.19041
Did you find any workaround?
Nope
Relevant log output