<Target Name="RunWebServer">
<Exec Command='$(WebServer) /port:3811 /path:$(Path)' />
</Target>
上述命令实际上转换为下面给出的命令:
"C:\Program Files (x86)\Common Files\microsoft shared\DevServer\9.0"\WebDev.WebServer /port:3811 /path:"D:\PROJEKTI\eMedicine\eMedicine\eMedicine"
但是当我启动build.xml
时D:\PROJEKTI\eMedicine\eMedicine>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MsBuild.exe Build.xml /target:RunWebServer
Microsoft (R) Build Engine Version 3.5.30729.4926
[Microsoft .NET Framework, Version 2.0.50727.4927]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 15.5.2010 14:06:36.
脚本永远不会结束。如何运行它然后自动停止它,从而为下一个任务做好准备?