Are you sure?
I’ve just tried it with the GainPlugin (from latest tip of develop).
And ran: JUCE\examples\PlugInSamples\GainPlugIn\Builds\VisualStudio2015> msbuild GainPlugIn.sln /p:Configuration=Release /t:GainPlugIn_VST:rebuild
MSBuild is very frustrating tool IMHO compared the xcodebuild.
However it’s possible to do almost anything if you decide to dig-in and make your own MSBuild XMLs where you can define almost anything. but I wouldn’t say it’s a great command line tool
What kind of error are you getting, you just said “doesn’t work”? I’m doing the exact same thing, building a specific target from a project and the /t: parameter is definitely the weapon of choice, so my gut feeling is something inside your project configuration is preventing this from working. I don’t have multiple formats in one solution, but that’s obviously working for you when you do an all-build.
I just copied and pasted your command line and got this:
"V:\Programming\JUCE\examples\PlugInSamples\GainPlugIn\Builds\VisualStudio2015\GainPlugIn.sln" (GainPlugIn_VST:rebuild
target) (1) ->
V:\Programming\JUCE\examples\PlugInSamples\GainPlugIn\Builds\VisualStudio2015\GainPlugIn.sln.metaproj : error MSB4057
: The target "GainPlugIn_VST:rebuild" does not exist in the project. [V:\Programming\JUCE\examples\PlugInSamples\GainPl
ugIn\Builds\VisualStudio2015\GainPlugIn.sln]
I suspect there is another thing you’ve missing.
Sounds like you haven’t build your projucer for a while. Especially with develop branch.
They’ve changed the project names which is the reason your target failed and also added the missing default build flag that’s very needed with MSbuild