Reputation: 385
I would like to create an exe file from my WPF project which can work without other project files and which can be ran on different computers. Currently, I'm using the Publish function in Build > Publish ProjectName, with these options:
Profile name: FolderProfile
Delete existing files: false
Configuration: Release | Any Cpu
Target framework: net5.0-windows
Deployment mode: Framework-dependent
Target runtime: Portable
Target Location: \bin\Release\net5.0-windows\publish\
Even if successfully published, I found various files in the target location and when I copied the exe in a different folder, externally to the project folder, it didn't work and no window appeared.
Any suggestion? Thank you!
Upvotes: 5
Views: 33220
Reputation: 1078
You could try the following steps:
Upvotes: 6