Whilst working on an automated build where I needed to target a specific project I hit a problem. I would normally expect the MSBuild argument to be
Where I want to build the project Myproject in my solution and perform the Build target (which is probably the default anyway).
However, my project was in a solution folder. The documentation says the you should be able to use for form
but I kept getting the error the project did not exist.
Once I changed to
it worked, the default build target was run, which was OK as this was Build the one I wanted.
Not sure why occurred, maybe I should steer clear of solution folders?