Used to compile and execute code
Build and execute a C# project stored in the target XML file.
msbuild.exe pshell.xml
Build and execute a C# project stored in the target csproj file.
msbuild.exe project.csproj
Executes generated Logger DLL file with TargetLogger export
msbuild.exe /logger:TargetLogger,C:\Loggers\TargetLogger.dll;MyParameters,Foo
Execute jscript/vbscript code through XML/XSL Transformation. Requires Visual Studio MSBuild v14.0+.
msbuild.exe project.proj
By putting any valid msbuild.exe command-line options in an RSP file and calling it as above will interpret the options as if they were passed on the command line.
msbuild.exe @sample.rsp