-
Notifications
You must be signed in to change notification settings - Fork 107
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
AOT fails with ABI.System.Threading in 1.6 Experimental #1638
Comments
Can you make a minimal repro? |
However, this error doesn't happen when I create a blank template, and I don't know which API is causing it |
From the source generator generated files, can you find and provide the generated class that is using |
When I jumped to 3728 lines of error referred to in the error message, it showed something that was inconsistent with the error message |
I see no references to |
|
Thanks for your reminder, found is missing unexpectedly CancellationTokenSource |
Further, I found that there was a problem with my personal code. The Dictionary generics put in a CancellationTokenSource class and set this property to public, triggering the abi interop generation of winrt aot, which caused the compilation error. |
Describe the bug
AOT fails with ABI.System.Threading in 1.6 Experimental
To Reproduce
When Windows App SDK 1.6 Experimental and CsWinRT 2.1.0 were installed at the same time, a source generator error occurred when compiling the program
2>D:\Github\GetStoreApp\GetStoreApp\obj\x64\Debug\net9.0-windows10.0.22621.0\win-x64\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\WinRTGenericInstantiation.g.cs(3728,33,3728,61): error CS0234: 命名空间“ABI.System”中不存在类型或命名空间名“Threading”(是否缺少程序集引用?)
Expected behavior
Successfully build with CsWinRT 2.1.0 preview and Windows App SDK 1.6 Experimental
Version Info
CsWinRT 2.1.0-preview
.NET SDK 9.0.0-preview4
Windows SDK 10.0.22621.35-preview
Additional context
The text was updated successfully, but these errors were encountered: