使用时出错NAnt 中的标签
<?xml version="1.0"?>
<project name="Project" default="build">
<property name="program" value="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" />
<property name="name.proj" value="C:\project\proj.csproj" />
<target name="build">
<exec program="${program}"commandline="\devenv.exe ${name.proj}" />
</target>
</project>
它的输出是....
Error in Script usage:The Correct usage is:C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\vcvarsall.bat" [Option], where option= x86,ia64,or x86_ia64.
但是当我给出x86选项时,它再次出现错误..“/是一个意外的标记”
请建议该怎么做。
<?xml version="1.0"?>
<project name="Project" default="build">
<property name="program" value="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" />
<property name="name.proj" value="C:\project\proj.csproj" />
<target name="build">
<exec program="${program}"commandline="\devenv.exe ${name.proj}" />
</target>
</project>
Its output is....
Error in Script usage:The Correct usage is:C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\vcvarsall.bat" [Option], where option= x86,ia64,or x86_ia64.
But when i gives the x86 option ,it again comes with error.."/ is an unexpected token"
Please suggest what to do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你试过这个吗:
源
have you tried this:
source
你应该这样做:
我不确定你为什么将 devenv.exe 作为命令行传递。您可能想在单独的执行任务中执行此操作
You should be doing:
I am not sure why you are passing devenv.exe as commandline. You probably want to do that in a separate exec task
这是从 VSS 获取最新版本的示例 EXEC
Here is a sample EXEC for get latest from VSS