다음을 통해 공유


How to Build TFS Build Locally?

If you need to test your TFS build after playing around with the TFSBuild.proj, you can do that by do the following:

  • Synchronize the source control to your workspace.
  • Open Visual Studio 2005 Command Prompt (or Visual Studio 2008 Command Prompt), located under Start>Microsoft Visual Studio 2005>Visual Studio Tools.
  • Change the directory into your TFSBuild.proj.
  • Call MSBuild by passing several parameters as follow: MSBuild TFSBuild.proj /p:SolutionRoot=..\..
  • If you need to test how the build will drop the binaries, pass an extra parameter, for example: MSBuild /p:SolutionRoot=..\.. /p:BinariesRoot=d:\Drop\Binaries\BuildTest

This post was created to help people who search for this information using different keywords, for more detail, MSDN link is here.

Comments