I have a startup project and I want to do a process.Start(); on a second project in the same solution. But using Path.Combine(Application.StartupPath, "SecondAssemblyName.exe"); as FileName doesn’t work. What does?
I have a startup project and I want to do a process.Start(); on a
Share
By default, each project builds to its own directory, so you would have something like:
So your command to execute the other .exe does not work because they are built to separate folders.
You can fix this by doing one of a few things. You can add a post-build step to copy one .exe to the others \bin folder. Or you could change the build output paths of the projects to build to the same location.