简体   繁体   English

如何在AppDomain中运行可执行文件?

[英]How to run executable file in AppDomain?

I wanted to run an executable file in an AppDomain. 我想在AppDomain中运行可执行文件。 The execute file is not an assembly. 执行文件不是程序集。 How can i do that? 我怎样才能做到这一点? Can someone please tell me. 有人可以告诉我。

An AppDomain, in the context of your question, is a .NET CLR concept and cannot be used to execute an unmanaged exectable. 在您的问题上下文中,AppDomain是.NET CLR概念,不能用于执行非托管的可执行表。

If you run the executable using Process.Start , it will run in its own Process which has even higher isolation than an AppDomain . 如果使用Process.Start运行可执行文件,它将在自己的Process中运行,该Process的隔离度甚至比AppDomain高

What features of an AppDomain did you want to have when running the executable? 运行可执行文件时,您希望拥有哪些AppDomain功能?

What about Proces.Start(Your exe) ? 那么Proces.Start(Your exe)怎么样? Is that not working? 这不起作用吗?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM