I have an MSBuild command line that can build an entire solution. It looks something like this:
msbuild SomeSolution.sln /p:Configuration:CustomDebug;Platform=Our
You can use the following commandline for building your project using msbuild from commandline
msbuild Solution.sln /p:Configuration=Release;Platform=x86 /t:ProjectName:Rebuild