microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

The code generated by XAML (XamlTypeInfo.g.cs) triggers the SYSLIB0050 warning

Open Gaoyifei1011 opened this issue 7 months ago • 2 comments

Describe the bug

The code generated by XAML (XamlTypeInfo.g.cs) triggers the SYSLIB0050 warning

-----------------------------

XAML 生成的代码(XamlTypeInfo.g.cs)触发 SYSLIB0050 警告

Image

Image

Steps to reproduce the bug

See description

Expected behavior

See description

Screenshots

See description

NuGet package version

WinUI 3 - Windows App SDK 1.7.2: 1.7.250513003

Windows version

Windows 11 (24H2): Build 26100

Additional context

None

Gaoyifei1011 avatar May 25 '25 05:05 Gaoyifei1011

@Gaoyifei1011 I tried reproducing this by creating a black app and enabled trimming in project file, but it didn't repro for me. Could you please provide a minimal repro and the steps to reproduce the issue.

hiteshkrmsft avatar Jun 04 '25 04:06 hiteshkrmsft

@Gaoyifei1011 I tried reproducing this by creating a black app and enabled trimming in project file, but it didn't repro for me. Could you please provide a minimal repro and the steps to reproduce the issue.

i have this issue too. https://github.com/microsoft/microsoft-ui-xaml/issues/10356

you can try to compile my repo with AOT enabled

https://github.com/ghost1372/PSXMaster

ghost1372 avatar Jun 04 '25 09:06 ghost1372

@Gaoyifei1011 I tried reproducing this by creating a black app and enabled trimming in project file, but it didn't repro for me. Could you please provide a minimal repro and the steps to reproduce the issue.

I have no idea where this bug came from either. You can try compiling my project to obtain the source of this error. https://github.com/Gaoyifei1011/GetStoreApp Hint: It is necessary to add <SelfContained>true</SelfContained> in csproj

---------------------------

我也不知道这个 bug 怎么来的,您可以尝试编译我的项目来获取这一错误的来源。 https://github.com/Gaoyifei1011/GetStoreApp 提示:需要在 csproj 中添加 <SelfContained>true</SelfContained>

Gaoyifei1011 avatar Jun 22 '25 05:06 Gaoyifei1011