I'm trying to create a pre build event similar to one described in this post
Build another project by prebuild event without adding reference
This is the command line I'm using in the Pre-build command line of the build events tab in Visual Studio 2015.
"$(DevEnvDir)devenv.exe" $(SolutionDir)MyFolder\SubFolder\MyProject.csproj /Rebuild "Debug|Any CPU"
However when I hit Build on the project that contains the pre-build event, it begins launching multiple instances of Visual Studio. I am watching the output directory for bin/Debug and it is conintually cleaning and rebulding the project, each time a new instance of Visual Studio is launched. None of the instances close. They remain running.
EDIT: I noticed even after cancelling the build in the IDE and exiting the IDE, the processes are still running and the debug folder is still being cleaned and updated with new dll's each time.
This is what my task manager looks like during the process