Click here to Skip to main content
14,601,122 members
Rate this:
Please Sign up or sign in to vote.
I have an 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!
Updated 14-Apr-10 7:18am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100