I\'m trying to publish a WPF Application (to a folder) targeting .NET Core 3.1, using Publish Single File, targeting win-x86. The application publishes fine for Debug, but fails
It is worth checking your Internet connection. I had a problem publishing self-contained deployment, because I was behind corporate firewall. Same error as yours:
Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.
And nothing more informative in that log file. After I disconnected VPN app was published with no errors.