MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: AOT publish not run right

Open
#4,866 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

What happened?

Snipaste_2024-10-18_09-50-33

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

129.0.2792.89

SDK Version

1.0.2792.45

Framework

Winforms

Operating System

Windows 10

OS Version

22H2 19045.4894

Repro steps

Create new project WinfromApp (.net8 winform)
From nuget Add WebView2 1.0.2792.45
dotnet publish WinfromApp -r win-x64 -c Release -p:PublishAot=true -p:_SuppressWinFormsTrimError=true

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the WinForms .NET 8 project with WebView2 SDK 1.0.2792.45 using the supplied dotnet publish command on Windows 10. Compare the AOT publish result and application behavior with a non-AOT publish; done means the published app's basic functions work as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.