Building web site only from solution

The MSBuild command line reference describes how you can build one project out of a solution using the /t: argument. That works fine for me for class libraries (specifying something like /t:Library1), but not for a web site that's part of the solution. Is there a trick to getting it to work?
On a related note, the docs say that you can invoke a particular target in the project using a syntax like "/t:NotInSlnfolder.Rebuild". However, I have no luck with that variation. Am I misunderstanding something here?
[517 byte] By [KevinDente] at [2008-2-7]
# 1

The best way to find the target names you need is to set the MSBuildEmitSolution environment variable to 1 and have a look at the .sln.proj file which MSBuild will create for you. It's a temporary MSBuild wrapper for the solution file that's normally only generated in memory. After looking up the target names you need you can use them when building either the solution file or the generated wrapper project, whichever is more convenient. Of course you'll have to regenerate the wrapper project if your solution changes, but as long as it doesn't building that project will be equivalent to building the solution file.

thanks,
Lukasz

LukaszGwozdz at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 2
Ah, excellent, that did the trick. It looks like the documentation is wrong - instead of "Project.Target", the generated project uses "Project:Target".
The web project got added to the solution with a rather funky name, and the resulting target is "C:\\<app>\". I'm not sure if that's a bug in VS or what.
Thanks.
KevinDente at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 3
I'll make sure the doc is updated with that colon.
DanMoseley at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...

Visual Studio

Site Classified