NetCompressor

Visual Studio 2008 CSS and JS Compression Tool

Overview

NetCompressor is a simple tool for Visual Studio 2008 which performs compression on your javascript and CSS files at design-time. A secondary, compressed copy is stored in the project with .min added before the extension. For example, style.css becomes style.min.css.

To use, simply install the tool and set the “Custom Tool” property of your CSS or javascript file to “NetCompressorCSS” or “NetCompressorJS” respectively. You can use the Show All Files button in your solution explorer to see the files that are added beneath the originals.

Known Issues

If you are using the Visual Studio publishing feature, you must be sure to Show All Files in your solution explorer prior to performing the publish. If you don’t, Visual Studio will not publish the minified versions of your files. If anyone knows a way to get around this issue in Visual Studio, please let me know.

Licensing

NetCompressor is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

NetCompressor is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.