I'm looking to show window (WPF) that is defined in separate class library project as new separate process. Is there any way to do this?
I need to start the second project instance in new process, because there stay occupied memory when I start it by this way:
secondProject.WPFWindow win = new secondProject.WPFWindow();
win.Show();
I have ONE solution with multiple projects.
- StartUp project is WPF app., output type: Windows application (exe file).
- All other projects are WFP app., output type: Class library (dll file).
Now I am running "applications" (other projects in this one solution built as dll) by this code:
secondProject.WPFWindow win = new secondProject.WPFWindow();
win.Show();
I want is runnig that apps in new process... Normally I would use Process.Start()
, but I can't is this case because it needs exe file as agrument and I have (and want) DLLs.