lepoco / lepoco/wpfui

Single-file deploymentBug

Open
#1,150 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

I using Wpf UI - Compact Navigation template. but after i deploy single file in the visual studio , when I setup exefile, it couldn't execute.
basic wpf app(without supporting WPFUI template) can execute.
this is maybe bug.

(I followed that "https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=vs" this guideline for single file deployment)

To Reproduce

You should try this guideline [ https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=vs ]

and then execute your app

see Publish a single-file app(visual studio) part in the guideline

Expected behavior

publish ok, but can't execute program app on the publish folder path.

Screenshots

No response

OS version

window 11

.NET version

.net 8.0 win-x86

WPF-UI NuGet version

WPF-UI 3.0.3

Additional context

if you have issue when you publish, you can request help to chat gpt
like it gave to me solution input into project's properties this
<PropertyGroup> <InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration</InterceptorsPreviewNamespaces> </PropertyGroup>

Contributor guide

Open the contributing guide

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 Compact Navigation template's Visual Studio single-file publish on Windows 11 with .NET 8.0 win-x86 and WPF-UI 3.0.3, following the linked Microsoft deployment guide. Capture the execution failure and compare it with a basic WPF app; done means the published executable launches from the publish folder.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.