NetCompressor

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.

NetCompressor uses the YUI Compressor for CSS files, and the Google Closure compiler in simple optimizations mode for javascript files.

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.

Prerequisites

  1. Visual Studio 2008
  2. Java Runtime Environment

Download

NetCompressor 1.0.0 Installer

Source Control

The root branch for NetCompressor is hosted on GitHub.

Bug Reporting

Please report bugs on GitHub at http://github.com/btburnett3/NetCompressor/issues.

Licensing

Copyright © 2010 Brant Burnett.  All Rights Reserved.

Written by Brant Burnett

NetCompressor is distributed under the terms of the GNU General Public License (GPL)

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.

You should have received a copy of the GNU General Public License along with NetCompressor.  If not, see http://www.gnu.org/licenses/.

Google Closure is included in this tool, and is distributed under the Apache License 2.0. For more information, please refer to ClosureLicense.txt.

YUI Compressor is included in this tool, and is distributed under the BSD License. For more information, please refer to YUILicense.txt.

Change Log

1.0.0

  • Initial release