dotnet / dotnet/wpf

.NET 5 RC2 WPF self-contained, single exe publish fails if its using assets from another .net 5 wpf project

Open
#3,711 7 comments 5 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

When referring to a UserControl from another .net core 3.1 wpf project, the main project publish is successful.

When referring to a UserControl from another .net 5 wpf project, the main project publish fails, and outputs:

_Could not copy the file "..\singlefilehost.exe" because it was not found._

```
Main project csproj:


WinExe
net5.0-windows
true

Main project publish settings:


Release
Any CPU
bin\Release\net5.0-windows\publish\
FileSystem
net5.0-windows
win-x64
true
True
False
False
true

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.