gpt4 book ai didi

c# - 使用 docker 容器化 .net c# WPF 应用程序

转载 作者:行者123 更新时间:2023-12-02 18:21:06 25 4
gpt4 key购买 nike

我想用 Docker 部署一个 WPF .Net(Version 4.0, C#) 应用程序,因为我需要在程序启动前安装多个与硬件相关的软件。并且还想在它之前安装 java,因为有 java 程序需要在这个 c# 应用程序中运行。

问题:

  1. 这可能吗?我希望根据我所读的内容"is"到现在

  2. 我该怎么做。

  3. 如果有任何其他可行的方法。

  4. 哪个更好。

任何可以帮助我感动的引用链接、视频。对此我将不胜感激。

最佳答案

无法在 docker 容器中运行 WPF 应用程序(有关详细信息,请参阅 article):

You can’t run desktop apps in Docker because there’s no UI integration between the Docker platform and the Windows host. That rules out running Windows Forms or Windows Presentation Foundation (WPF) apps in containers

关于c# - 使用 docker 容器化 .net c# WPF 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52680274/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com