Skip to content

[Problem/Bug]: Can't work with Winforms and NativeAOT #5238

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

Open
Gascognya opened this issue May 12, 2025 · 0 comments
Open

[Problem/Bug]: Can't work with Winforms and NativeAOT #5238

Gascognya opened this issue May 12, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Gascognya
Copy link

What happened?

<PublishAot>true</PublishAot>
<_SuppressWinFormsTrimError>true</_SuppressWinFormsTrimError>

Before

Image

After

Image

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

136.0.3240.64

SDK Version

1.0.3296-prerelease

Framework

Winforms

Operating System

Windows 10

OS Version

19045.5796

Repro steps

  • Create .NET 9 Winforms Project
  • Add WebView2 Nuget Package
  • Add WebView2 Control
  • Set PublishAot And _SuppressWinFormsTrimError

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@Gascognya Gascognya added the bug Something isn't working label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants