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

标签 c# .net wpf windows docker

我想用 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/

相关文章:

wpf - 尝试在 WPF 中设置子 DataGrid 的 itemsource 时出现 "Items collection must be empty before using ItemsSource."之类的异常

c# - 数据网格 : Have a stable/fixed row for a "group" of items

c# - 在 WPF 中,DependencyProperty 在与值类型一起使用时会导致大量装箱/拆箱吗?

c# - Mysql WHERE LIKE 与 RadCombobox.Text

c# - 可以通过索引方式获取类属性值或如何摆脱辅助方法 'GetValue'

c# - WCF 终结点的默认超时值

c# - 中止使用 Delegate.BeginInvoke 启动的线程

c# - 如何解决这个 Javascript/Razor 问题?

c# - 单核处理器上的 PLinq

.net - 是否有用于读取 DACPAC 文件的库?