OutputBy Enumeration
The options to manage JavaScript output folders and files.
Namespace:
BridgeAssembly: Bridge (in Bridge.dll)
Syntax
[ExternalAttribute] public enum OutputBy
<ExternalAttribute> _ Public Enumeration OutputBy
[ExternalAttribute] public enum class OutputBy
Members
Member name | Description | |
---|---|---|
Class | The class name will be the file name. If there are classes with same names in different namespaces, the generated JavaScript will be combined into one file. For example, if the class name is "Helpers", the file name will be "Helpers.js". | |
ClassPath | A folder hierarchy is created using the class name, and a folder is created for each unique word (split by '.') in the class namespace. For example, if the class "Helpers" is within the "Demo" namespace, the file path and name will be "Demo/Helpers.js". | |
Module | The ModuleAttribute value is used as the file name if set on a class. For example, if [Module("MyModuleName")] is set, the file name will be "MyModuleName.js". | |
Namespace | The full namespace is used as the file name. For example, if "Demo.Utilities" is the namespace, the file name will be "Demo.Utilities.js". | |
NamespacePath | The class namespace is split (by '.') and a folder is created for each individual value, except the last value which becomes the file name. For example, if "Demo.Utilities" is the namespace, the file path and name will be "/Demo/Utilities.js". | |
Project | All generated JavaScript for the project is added to one [ProjectName].js file. For example, if the project name is "MyUtilities", the file name will be "MyUtilities.js". This can be overridden by setting the fileName option within bridge.json, or by using the [FileName] Attribute on the assembly or class levels. |