【问题标题】:How to run .exe on remote windows network path from c# .net core running on Linux (docker container)如何从在 Linux(docker 容器)上运行的 c# .net 核心在远程 Windows 网络路径上运行 .exe
【发布时间】:2021-07-03 06:34:31
【问题描述】:

我正在寻找建议,如何从在 Linux(docker 容器)上运行的 c# .net 核心实现远程 Windows 网络路径上存在的运行 .exe。 .net 核心程序在 aws 批处理上运行,因为 Fargate 容器和 Windows 网络路径位于我们的本地 Windows 网络共享上。

我在 .net core 中使用了 process 和 processstartinfo 类,但出现以下错误:

未处理的异常。 System.ComponentModel.Win32Exception(2):没有那个文件或目录

【问题讨论】:

    标签: c# .net linux windows exe


    【解决方案1】:

    您或许可以使用wine 让exe 在Linux 容器中运行。也许首先让它在不使用容器的情况下在 linux 机器上运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-01
      • 2020-05-06
      • 1970-01-01
      • 1970-01-01
      • 2020-11-21
      • 1970-01-01
      • 1970-01-01
      • 2021-12-05
      相关资源
      最近更新 更多