Enabled when a script window using a .NET language is opened. This command allows compilation of the .NET script into a DLL.
When a script using a .NET language is created in Manifold it will be automatically compiled when it is run. Using the Compile to DLL command allows us to compile the script into a DLL before it is run. A DLL compiled this way will be identical to a DLL compiled with Microsoft Visual Studio and will contain the code for .NET entities defined in the script component.
One might want to compile a .NET script into a DLL for several reasons:
· To share the code between scripts.
· To expose code originally written as a Manifold script to other programs.
· To reduce the time it takes to launch a script by eliminating the need to compile it before running.
To compile a .dll from a .NET language script:
1. Open the .NET language script.
2. Choose Script - Compile to DLL.
3. In the Save As dialog, browse to a folder location and provide a filename. Press Save.
4. Any errors during compilation will be logged in the Errors pane.
The Errors pane displays the description, module, line and line position of any errors that occur during the compilation phase of running a .NET script. Highlighting an error in the Errors pane and clicking Go To (or, simply double-clicking the error) will open the relevant script component and place the cursor at the location of the error.
See Also