Some times its very annoying to run a full build to debug an issue with a particular project. To build just one project from a solution file you can do something like this
msbuild solution_file.sln /t:"solution_folder\project_name" /p:Configuration=Debug

where ‘solution_folder’ is the solution folder under which the ‘project_name’ project is located

There is another way, but that does not take into account the project dependencies (as they are defined in the solution file)
msbuild path_to_project_file /t:Build /p:Configuration=Debug