Home >Online Product Documentation >Table of Contents >Code Generation Settings
When you generate code for an XML pipeline, Stylus Studio displays a dialog box that allows you to specify settings that affect the generated code. There are separate dialog boxes for Java and C# code. The dialog box that appears is based on the execution framework you selected for the XML pipeline.
You use Generate Java Code for XML Pipeline dialog box to specify
c:\temp\myPipelineJavaCode, for example. If the directory you name does not exist, Stylus Studio creates it when you run the Java Code Generation wizard. The default is . , which places the generated code in the same directory as the .pipeline file.c:\temp\myPipelineJavaCode\mypackage. (Though optional, it is considered good practice to create a package name.).java file created by the Java Code Generation wizard. For example, if you provide the name MyClass, Stylus Studio creates c:\temp\myPipelineJavaCode\mypackage\MyClass.java.xmlpipeline. jar, is in your system's classpath.All of these options are selected by default.
You use Generate C# .NET Code for XML Pipeline dialog box to specify
c:\temp\myPipelineC#Code, for example. If the directory you name does not exist, Stylus Studio creates it when you run the Code Generation wizard. The default is the same directory as the .pipeline file.c:\temp\myPipelineC#Code\myNamespace. (Though optional, it is considered good practice to create a namespace.).cs file created by the Code Generation wizard. For example, if you provide the name myClass, Stylus Studio creates c:\temp\myPipelineC#Code\myClass.cs. Stylus Studio uses the XML pipeline name as the default class name..cs file to contain a static void Main(String
[ ] args) method.setExecutionLog method in the generated application. Choices are Console.out (the default), Console.err, and Quiet. Set to Quiet to turn off the log..csproj files. The .csproj file contains all the necessary references to the generated .cs file, as well as all the .dll files that the .cs file requires.
To run the .cs file, simply press Ctrl+F5 in Visual Studio.