如何在 Visual Studio 2008 中运行 Ant? [英] How to run Ant inside Visual Studio 2008?

查看:40
本文介绍了如何在 Visual Studio 2008 中运行 Ant?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人对如何在 Visual Studio 2008 中运行 Ant 有任何想法.我希望执行一些非常常见的 Ant 任务,例如选择要在构建文件中运行的目标.

I'm wondering if anyone out there has any ideas about how to run Ant inside Visual Studio 2008. I'm looking to perform some pretty common Ant tasks such as selecting a target to run inside a build file.

我遇到并知道 NANT 和 MSBUILD 是 ASP.NET 项目的首选构建工具,但我只对在 IDE 中运行 Ant 的一些想法感兴趣.

I have come across and am aware of NANT as well as MSBUILD as more preferred build tools for ASP.NET projects, but I am only interested in some ideas about running Ant within the IDE.

提前致谢!

推荐答案

作为一种快速而肮脏的解决方案,您可以使用工具"菜单中的外部工具... 选项添加它.

As a quick and dirty solution you could add it using the External Tools... option in the Tools menu.

然后您可以在输出"窗口中看到 Ant 输出,并且您可以在命令行上向它传递各种内容,例如当前项目目录.

You can then see the Ant output in the Output window, and you can pass it various things like the current Project directory on the command line.

您还可以为 Tools.ExternalCommandXX 命令分配键盘快捷键,这些命令代表工具"菜单中的外部工具.

You can also assign keyboard shortcuts to the Tools.ExternalCommandXX commands which represent the external tools in the Tools menu.

这篇关于如何在 Visual Studio 2008 中运行 Ant?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆