✅ trying to build a single file WPF app but the publish dialog box looks nothing like the docs
As seen here:
https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=vs
My publish doesn't look like this. I'm not sure what I'm doing wrong? (my publish dialog is the second image)
Create a single file for application deployment - .NET
Learn what single file application is and why you should consider using this application deployment model.
12 Replies
I tried CLI too:
dotnet publish -r win-x64
and got this:
Seems like it wants a specific sdk installed? I'm still quite new and not sure what it wants exactlyNot sure if Core 3.1 had full support for single file builds
Is it possible to change that so I can make a single file?
Sure, updating to a moden version of .NET is always possible
How easy it is will vary, but in case of 3.1 it should be fairly painless
Just change the framework version in the project properties to 8.0
I think my work PCs target 6- I assume it's the same process?
Yeah
I had to use upgrade assistant to upgrade. So now I'm on 6.0 which is great but I am getting a build error:
Double clicking on the error brings me here:
But this is really just noise to me. I'm not sure what any of it means
I looked online and some solutions were to delete the bin and obj folders and clean/rebuild. So I did that- same error upon building
I deleted my publish folder
And it seemed to build.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered
/close