Such a thing: looking for the process of your application by process name (exe name, without extension)
Process[] process = Process.GetProcessesByName(processName); I need to then deploy it, but it does not work as it should, because finds two processes. At first I thought that this still hindered vshost, but after closing VS, it turned out that it was not. In the dispatch is shown only one process.
Why is that? And how to find exactly my process? By the name of the window does not offer.