Although I'm not sure whether this is a bug,
command searches the first project for the assembly.
There are two solutions to this problem.
You may include a switch in
command to make a certain project the startup project while the command is executing.
You must include this at the end of the command.