简体   繁体   English

如何从 a.Net Core 3.1 进程启动 a.Net Core 3.1 进程?

[英]How to start a .Net Core 3.1 process from a .Net Core 3.1 process?

I am trying to start a child.Net Core 3.1 process from another.Net Core 3.1 process for anonymous pipe communication.我正在尝试从另一个.Net Core 3.1 进程启动一个 child.Net Core 3.1 进程以进行匿名 pipe 通信。

_childProcess = new Process();
_childProcess.StartInfo.FileName = "childProcess.exe";
_childProcess.StartInfo.UseShellExecute = false;
_childProcess.StartInfo.WorkingDirectory = AppDomain.CurrentDomain?.BaseDirectory;
_childProcess.Start();

results in the error when debugging: "To run this application, you must install.Net Core".调试时导致错误:“要运行此应用程序,您必须安装.Net Core”。

错误消息弹出

The child process project is a dependency of the parent project which results in the childProcess.exe being copied into the output directory of the parent process.子进程项目是父项目的依赖项,导致childProcess.exe被复制到父进程的output目录中。 childProcess.exe can be started directly with no problem. childProcess.exe可以直接启动没有问题。 When started from code the runtime cannot be found.从代码启动时,无法找到运行时。

Make sure the child.runtimeconfig.json' is in the same directory as the client.exe`.确保child.runtimeconfig.json' is in the same directory as the

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .Net Core 3.1 - 编码过程output - .Net Core 3.1 - Encoding process output 循环过程中的 RedirectToAction [.Net Core 3.1] - RedirectToAction in Loop process [.Net Core 3.1] 如何在 StartUp.cs 中为 .net core 3.1 打印进程名称 - How to print process name in StartUp.cs for .net core 3.1 IIS 和 NET Core HTTP 错误 500.30 - ANCM 进程中启动失败 .net 核心 3.1 - IIS and NET Core HTTP Error 500.30 - ANCM In-Process Start Failure .net core 3.1 HTTP 错误 500.30 - ANCM 进程中启动失败 Asp.net-Core 3.1 - HTTP Error 500.30 - ANCM In-Process Start Failure Asp.net-Core 3.1 ASP.NET 核心 3.1 - HTTP 错误 500.30 - ANCM 进程中启动失败 - ASP.NET Core 3.1 - HTTP Error 500.30 - ANCM In-Process Start Failure .NET 核心 3.1 - Angular 9 - Angular CLI 进程未在 0 秒的超时期限内开始侦听请求 - .NET core 3.1 - Angular 9 - The Angular CLI process did not start listening for requests within the timeout period of 0 seconds .Net Core 3.1 Process.Start("www.website.com") 在 WPF 中不起作用 - .Net Core 3.1 Process.Start("www.website.com") not working in WPF .Net Core 3.1 上的 AutoMapper - AutoMapper on .Net Core 3.1 .net core 3.1中的ExpressionMetadataProvider - ExpressionMetadataProvider in .net core 3.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM