简体   繁体   中英

Is it Possible to Run a C# project using Another c# project

is it possible to run a C# project Already build using another project? there is any way to invoke the c# execution using a c# Code.

In here I need to execute the Already Compile Project inside a another project.

You can run an exe using Process.Start

ProcessStartInfo ps = new ProcessStartInfo("YourExecutable.exe", "any arguments");
ps.WindowStyle = ProcessWindowStyle.Hidden; // or exclude this line to show it
ps.CreateNoWindow = true; // and this line
ps.UseShellExecute = false;

Process process = new Process();
process.StartInfo = ps;

process.Start();

There are additional ways to get the output of your process for displaying or logging but that is easily searchable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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