Skip to content
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

[Problem/Bug]: Publishing with WPF and self-contained includes the native_uap Core dll #5074

Open
yowl opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yowl
Copy link

yowl commented Jan 31, 2025

What happened?

Using a command line such as

msbuild src\Cms.Wpf\Cms.Wpf.sln /target:Restore;WapCms:Publish /bl /p:Configuration=dev /p:SelfContained=true /p:AppxBundle=Never /p:NoRestore=true

For a .net 9 WPF app and an wapproj results in the native_uap dll from runtimes\win-x64\native_uap, Microsoft.Web.WebView2.Core.dll being set to CopyLocal=True and included in the msix. This will fail to load. Workaround is to add to the wapproj

  <PropertyGroup>
	  <WebView2UseWinRT>False</WebView2UseWinRT>
  </PropertyGroup>

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.0.2957.106

SDK Version

1.0.2957.106

Framework

WPF

Operating System

Windows 11

OS Version

26100

Repro steps

As per the description.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Yes, worked with .net 8 and a previous version

Last working version (if regression)

1.0.1722.45

@yowl yowl added the bug Something isn't working label Jan 31, 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

3 participants