Building .NET 4 Websites with MSBuild(without VS2010)
refer: http://alandjackson.wordpress.com/2010/10/13/building-net-4-websites-without-vs2010/
This post is based on my another one: 使用MSBuild自动编译发布你的ASP.NET应用程序, I assume you have basic knowledge about how to build a Visual Studio .sln solution with MSBuild.
Step 1: Install .Net Framework 4.0, download;
Step 2: Install the Windows SDK v7.1, download;
Step 3: Make Windows SDK v7.1 the default:
Run the Windows SDK 7.1 Command Prompt (Start => All Programs => Microsoft Windows SDK 7.1) and run:
C:\Program Files\Microsoft SDKs\Windows\v7.1> Setup\WindowsSdkVer.exe -version:v7.1

