使用Visual Studio的自定义生成过程 [英] Custom build process with Visual Studio
问题描述
我有一个带有一些JavaScript的ASP.net网站.现在,我想在构建/发布站点之前自动(通过调用外部工具)压缩javascript文件.
我不太确定如何直接在Visual Studio中进行配置.我看过MSBuild,但乍一看我认为它对于我的问题来说太大了……我可能是错的,如果您认为不是,请告诉我.
我目前正在使用VS2008(并开始使用VS2010).
感谢您的回答!
Phil
I have an ASP.net website with some javascript in it. Now I want to compress my javascript files automatically (by calling an external tool) before building/publishing the site.
I''m not quite sure how to configure this directly in Visual Studio. I had a look at MSBuild, but at first glance I think it is somehow oversized for my problem... I might be wrong, if you think otherwise, please tell me.
I''m currently using VS2008 (and beginning to use VS2010).
Thanks for your answers!
Phil
推荐答案
可以直接进行以下操作.
在"IDE工具"菜单上配置您的外部工具,其中有一个用于外部工具的选项.您必须显式单击菜单项以执行您想做的任何事情.
如果您想要一种更自动化的方法,请在项目属性构建事件"选项卡中使用构建前/构建后"事件.
Off hand there are a couple of things you can do.
Configure your external tool on the IDE Tools menu, there is a option for external tools. You would have to explicitly click the menu item to do whatever it is that you want to do.
If you want a more automated approach, use the pre/post build events in the project properties Build Events tab.
这篇关于使用Visual Studio的自定义生成过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!