views:

219

answers:

1

I am testing Script# and its manual tells me that it has a "Release" mode, where the code is minified for performance. But I couldn't find how to enter this mode. Anyone knows?

Update BenS has found a command line solution. I wonder if there is a graphical solution, preferably integrated with Visual Studio.

+6  A: 

From Script#'s author, Nikhil Kothari's Script# Intro:

The compiler has the notion of debug and release builds.

ssc /ref:sscorlib.dll /ref:Script.ScriptFX.Core.dll /minimize /out:HelloWorld.js HelloWorld.cs

Running the compiler without /debug and with /minimize produces a release build.

From the Script# Manual on page 8:

The resulting Web site structure looks like the following (as shown in the screenshot of the solution explorer below) with Script# assemblies present in the Bin\Script folder and the corresponding debug and release script files within the App_Scripts folder.

Ben S