set Unified=C:\Workspaces\Main\Unified\UnifiedFX.sln
set Fullserver=C:\Workspaces\Main\Unified\FullServer\Tests\FullServer.Automation\FullServer.Automation.csproj
set Management=C:\Workspaces\Main\Unified\Management\Tests\Management.Automation\Management.Automation.csproj
set Move=C:\Workspaces\Main\Unified\Move\Tests\Move.Automation\Move.Automation.csproj
set d64="Debug|x64"
set d86="Debug|x86"
for %%a in (%d64%, %d86%) do (
for %%b in (%Fullserver%, %Move%, %Management%) do (
devenv %Unified% /build %%a /project %%b))
那是我的 .bat 文件。当我运行它时,它需要将近 90 秒才能完成。然而,我可以在几秒钟内从 Visual Studios 2010 中构建每个单独的项目,再加上在 x64 和 x86 之间切换所需的时间。为什么bat文件这么慢?