Hi,@Wally96333. Welcome to Microsoft Q&A forum.
If you are using Visual Studio 2017 and are trying to create a single-file deployment for your WPF.NET Framework project, you might encounter limitations.
It doesn’t work with .NET Framework based projects. According to this thread: Publish a single file app does not create a single file and this link(.NET 5), you may need to use .NET 6 or higher versions of .NET to make it work.
Based on my test, by using .NET 6, if you choose framework-dependent to publish, you will get two files(.exe, .pdb). If you choose Self-Contained to publish, you will still get some (not a single file) files.
For more information on single file deployments, you could refer to Single-file deployment.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.