Publish Single File (Release) fails for WPF .NET Core 3.1 application

前端 未结 5 1831
南旧
南旧 2021-02-20 11:55

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

5条回答
  •  长发绾君心
    2021-02-20 12:02

    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.

提交回复
热议问题