lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.04k stars 667 forks source link

Target runtime win-x64 publish failed #1068

Closed thanhvyit closed 2 months ago

thanhvyit commented 2 months ago

Describe the bug

Everything went well until I attempted to publish the app using win-x64. The publish failed without any error message to identify the issue.

To Reproduce

  1. Clone the project from GitHub.
  2. Right-click on the Wpf.Ui.Gallery project and select "Publish."
  3. Choose the "ClickOnce" option for the target.
  4. Keep the publish location as default.
  5. Set the install location to a valid domain under "From a website."
  6. Keep the settings as default.
  7. Keep the "Sign manifests" as default
  8. Keep all configurations as default, except for the "Target runtime," which should be set to "win-x64."
  9. Click "Finish" to close the profile creation window.
  10. Click "Publish."
  11. Wait for the publish failure to appear.

Expected behavior

The publishing process completed successfully with the 'Target runtime' set to win-x64.

Screenshots

image image

OS version

Windows 10 Pro, OS Build: 19045.4291

.NET version

Target OS: Window Target OS version: net8.0-windows10.0.22621.0 Supported OS version: 10.0.18362.0 Target Framework: net8.0

WPF-UI NuGet version

Github source code cloned at: 2/29/2024

Additional context

No response

thanhvyit commented 2 months ago

For those encountering the same issue, adding $(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration fixed it.