Difference between revisions of "CUSTOMIZING"
m |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | The Customizing object gives information about one version of the compiled customized assemblies. Every time the user executes a compilation (both local and released) a new instance of customizing is created. | ||
{{MetaClassInfoBox | {{MetaClassInfoBox | ||
| title = Customizing | | title = Customizing | ||
Line 8: | Line 9: | ||
| purpose = Manage customizing versions | | purpose = Manage customizing versions | ||
| version = 2+ | | version = 2+ | ||
+ | | runtimetype = | ||
+ | | typestring = | ||
}} | }} | ||
− | |||
− | |||
− | |||
==Properties== | ==Properties== | ||
===Version number=== | ===Version number=== | ||
− | The version number of a customizing consits of 3 numbers: | + | The version number of a customizing consits of 3 numbers: ''Major.Minor.Revision''<br/> |
− | ''Major.Minor.Revision''<br/> | + | '''Major''' and ''Minor'' are linked to ''Major'' and ''Minor'' of the {{UBIK}} Kernel version the customizing was compiled with. The '''Revision''' is increased by 1 with every compilation. |
− | Major and Minor are linked to Major and Minor of the UBIK Kernel version the customizing was compiled with. The Revision is increased by 1 with every compilation. | + | |
− | + | ||
===Kernel Version=== | ===Kernel Version=== | ||
− | The kernel Version number for which the current customizing was compiled for | + | The kernel ''Version'' number for which the current customizing was compiled for. |
− | + | ||
===Comment=== | ===Comment=== | ||
Additional comment describing the customizing. | Additional comment describing the customizing. | ||
− | |||
===Assembly and AssemblyUI File=== | ===Assembly and AssemblyUI File=== | ||
Gives information about the filenames of the assemblies of the customizing. | Gives information about the filenames of the assemblies of the customizing. | ||
− | |||
===Released=== | ===Released=== | ||
Indicates as the customizing is currently the released one. Only one customizing can be released per Kernel Version. | Indicates as the customizing is currently the released one. Only one customizing can be released per Kernel Version. | ||
Setting it to true will mark all other customizings (with the same Kernel Version) as not released. | Setting it to true will mark all other customizings (with the same Kernel Version) as not released. | ||
− | |||
===Original Version=== | ===Original Version=== | ||
The Customizing Version which was active once the new once was compiled. | The Customizing Version which was active once the new once was compiled. | ||
+ | == Methods == | ||
+ | === AddSystemAssemblies === | ||
+ | Gives the possibility to define assemblies (by their name) which must be added to the UBIK Compiler every time it is asked to compile either the customizing or debugging code in the debugging test environment (Whobert). {{Version/ServerSince|2.5.0}} | ||
+ | |||
+ | ''Example:'' | ||
+ | <syntaxhighlight lang="csharp"> | ||
+ | public override System.String[] AddSystemAssemblies() | ||
+ | { | ||
+ | List<string> assemblies = new List<string>(); | ||
+ | string[] baseAssemblies = base.AddSystemAssemblies(); | ||
+ | if (baseAssemblies != null) | ||
+ | { | ||
+ | assemblies.AddRange(baseAssemblies); | ||
+ | } | ||
+ | assemblies.Add( "System.Data.dll" ); | ||
+ | return assemblies.ToArray(); | ||
+ | } | ||
+ | </syntaxhighlight> | ||
− | == | + | == See also == |
− | + | * [[HowTo:Register_additional_Assemblies_at_the_UBIK_Compiler]] | |
− | + | ||
[[Category:Metaclasses|CUSTOMIZING]] | [[Category:Metaclasses|CUSTOMIZING]] |
Latest revision as of 15:14, 2 May 2016
The Customizing object gives information about one version of the compiled customized assemblies. Every time the user executes a compilation (both local and released) a new instance of customizing is created.
Customizing | |
---|---|
Name | CUSTOMIZING |
Namespace | System.Main.Base |
Internal Name | SystemObjects.CUSTOMIZINGVERSION |
TypeString | |
RuntimeType | |
Purpose | Manage customizing versions |
Version | 2+ |
Contents
Properties
Version number
The version number of a customizing consits of 3 numbers: Major.Minor.Revision
Major and Minor are linked to Major and Minor of the UBIK® Kernel version the customizing was compiled with. The Revision is increased by 1 with every compilation.
Kernel Version
The kernel Version number for which the current customizing was compiled for.
Comment
Additional comment describing the customizing.
Assembly and AssemblyUI File
Gives information about the filenames of the assemblies of the customizing.
Released
Indicates as the customizing is currently the released one. Only one customizing can be released per Kernel Version. Setting it to true will mark all other customizings (with the same Kernel Version) as not released.
Original Version
The Customizing Version which was active once the new once was compiled.
Methods
AddSystemAssemblies
Gives the possibility to define assemblies (by their name) which must be added to the UBIK Compiler every time it is asked to compile either the customizing or debugging code in the debugging test environment (Whobert).
Example:
{
List<string> assemblies = new List<string>();
string[] baseAssemblies = base.AddSystemAssemblies();
if (baseAssemblies != null)
{
assemblies.AddRange(baseAssemblies);
}
assemblies.Add( "System.Data.dll" );
return assemblies.ToArray();
}