AssemblyOptionSettings Class

Summary

Per assembly settings.
Assembly
Cake.SmartAssembly.dll
Namespace
Cake.SmartAssembly
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["AssemblyOptionSettings"] class Type type-node

Syntax

public class AssemblyOptionSettings

Constructors

Properties

Name Value Summary
Assembly string
The name of the assembly.
CompressAssembly Nullable<bool>
Enable / Disable compression when the assembly is embedded. This option is ignored unless embed:true.
CompressEncryptResources Nullable<bool>
Enable / Disable resources compression and encryption
ControlFlowObfuscate Nullable<int>
Sets the level of control flow obfuscation to apply to the assembly: False = None 0 = Use attributes to set Control Flow Obfuscation, see Obfuscating the control flow 1 = Basic 2 = Strictly valid 3 = Strongest 4 = Unverifiable
DynamicProxy Nullable<bool>
Enable / Disable the references dynamic proxy
Embed Nullable<bool>
Disable / Enable dependencies embedding This option is ignored if merge:true. (Note that you cannot embed the main assembly.)
EncryptAssembly Nullable<bool>
Whether you want to encrypt the assembly when it is embedded. This option is ignored unless embed:true and compressassembly:true
Merge Nullable<bool>
Disable / Enable dependencies merging (Note that you cannot merge the main assembly.)
NameObfuscate Nullable<bool>
Enable / Disable types and methods obfuscation and field names obfuscation The obfuscation is applied at the levels specified for the project.
Prune Nullable<bool>
Enable / Disable pruning

Extension Methods

Name Value Summary
CollectAll() string[]
Appends all arguments from settings.
Requires the Cake.SmartAssembly addin
Dump<AssemblyOptionSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<AssemblyOptionSettings>(AssemblyOptionSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<AssemblyOptionSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<AssemblyOptionSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<AssemblyOptionSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<AssemblyOptionSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin