Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 14-Apr-10 7:18am
v2

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900