C# Class FluentBuild.AssemblyInfoBuilding.AssemblyInfoDetails

Sets the lines for an assembly info file
Inheritance: FluentBuild.Utilities.InternalExecutable, IAssemblyInfoDetails
Exibir arquivo Open project: SkightTeam/eLiteWeb Class Usage Examples

Public Methods

Method Description
AddCustomAttribute ( string attributeNamespace, string name, bool isQuoted, string value ) : IAssemblyInfoDetails

Adds a custom attribute to the assemblyInfo file

ClsCompliant ( bool compliant ) : IAssemblyInfoDetails

States if the assembly is CLS Compliant. CLS compliant means that all classes only expose features that are common accross all .NET languages.

Things that make an assembly non-cls compliant: Exposing unsigned types. Unsafe types (e.g. pointers) should not be exposed. Operators should not be overloaded Two types or methods should not be included that differ only by case. e.g. doWork and DOWORK.

ComVisible ( bool visible ) : IAssemblyInfoDetails

Explicitly states if this assembly is visible to COM clients. If the attribute is missing then the assembly is COM visible.

Company ( string value ) : IAssemblyInfoDetails

Sets the company attribute of the assembly

Copyright ( string value ) : IAssemblyInfoDetails

Sets the copyright attribute of the assembly

Culture ( string culture ) : IAssemblyInfoDetails

Sets the culture

DelaySign ( bool delaySign ) : IAssemblyInfoDetails

Sets if to delay sign the assembly

Description ( string value ) : IAssemblyInfoDetails

Sets the description attribute of the assembly

FileVersion ( string version ) : IAssemblyInfoDetails

Sets the file version

Import ( ) : IAssemblyInfoDetails

Import a namespace. Will generate a using namespace; in C# and imports namespace in VB

Duplicate namespace imports will be automatically ignored

InformationalVersion ( string version ) : IAssemblyInfoDetails

Sets the informational version

KeyFile ( string path ) : IAssemblyInfoDetails

Sets teh path to the Strong Named Key for an assembly

KeyName ( string name ) : IAssemblyInfoDetails

Sets the KeyName

OutputPath ( FluentFs path ) : IAssemblyInfoDetails
OutputPath ( string path ) : IAssemblyInfoDetails
Product ( string value ) : IAssemblyInfoDetails

Sets the product attribute of the assembly

Title ( string value ) : IAssemblyInfoDetails

Sets the title attribute of the assembly

Trademark ( string trademark ) : IAssemblyInfoDetails

Sets the trademark attribute

Version ( System.Version value ) : IAssemblyInfoDetails

Sets the assembly version.

Version ( string value ) : IAssemblyInfoDetails

Sets the assembly version.

Private Methods

Method Description
AssemblyInfoDetails ( IAssemblyInfoBuilder assemblyInfoBuilder ) : System
AssemblyInfoDetails ( IAssemblyInfoBuilder assemblyInfoBuilder, IFileSystemHelper fileSystemHelper ) : System
ImportDropIfDuplicate ( string @namespace ) : void
InternalExecute ( ) : void
OutputTo ( FluentFs artifactLocation ) : void
OutputTo ( string filePath ) : void

Method Details

AddCustomAttribute() public method

Adds a custom attribute to the assemblyInfo file
public AddCustomAttribute ( string attributeNamespace, string name, bool isQuoted, string value ) : IAssemblyInfoDetails
attributeNamespace string The namespace that the attribute exists in
name string The name of the attribute
isQuoted bool Wether or not to quote the value when the file is generated
value string The value of the attribute
return IAssemblyInfoDetails

ClsCompliant() public method

States if the assembly is CLS Compliant. CLS compliant means that all classes only expose features that are common accross all .NET languages.
Things that make an assembly non-cls compliant: Exposing unsigned types. Unsafe types (e.g. pointers) should not be exposed. Operators should not be overloaded Two types or methods should not be included that differ only by case. e.g. doWork and DOWORK.
public ClsCompliant ( bool compliant ) : IAssemblyInfoDetails
compliant bool sets cls compliant
return IAssemblyInfoDetails

ComVisible() public method

Explicitly states if this assembly is visible to COM clients. If the attribute is missing then the assembly is COM visible.
public ComVisible ( bool visible ) : IAssemblyInfoDetails
visible bool sets com visibility
return IAssemblyInfoDetails

Company() public method

Sets the company attribute of the assembly
public Company ( string value ) : IAssemblyInfoDetails
value string The company to set
return IAssemblyInfoDetails

Copyright() public method

Sets the copyright attribute of the assembly
public Copyright ( string value ) : IAssemblyInfoDetails
value string The copyright to set
return IAssemblyInfoDetails

Culture() public method

Sets the culture
public Culture ( string culture ) : IAssemblyInfoDetails
culture string The culture of the assembly
return IAssemblyInfoDetails

DelaySign() public method

Sets if to delay sign the assembly
public DelaySign ( bool delaySign ) : IAssemblyInfoDetails
delaySign bool Wether to delay sign the assembly
return IAssemblyInfoDetails

Description() public method

Sets the description attribute of the assembly
public Description ( string value ) : IAssemblyInfoDetails
value string The description to set
return IAssemblyInfoDetails

FileVersion() public method

Sets the file version
public FileVersion ( string version ) : IAssemblyInfoDetails
version string
return IAssemblyInfoDetails

Import() public method

Import a namespace. Will generate a using namespace; in C# and imports namespace in VB
Duplicate namespace imports will be automatically ignored
public Import ( ) : IAssemblyInfoDetails
return IAssemblyInfoDetails

InformationalVersion() public method

Sets the informational version
public InformationalVersion ( string version ) : IAssemblyInfoDetails
version string
return IAssemblyInfoDetails

KeyFile() public method

Sets teh path to the Strong Named Key for an assembly
public KeyFile ( string path ) : IAssemblyInfoDetails
path string The path to the snk file
return IAssemblyInfoDetails

KeyName() public method

Sets the KeyName
public KeyName ( string name ) : IAssemblyInfoDetails
name string The name of the key
return IAssemblyInfoDetails

OutputPath() public method

public OutputPath ( FluentFs path ) : IAssemblyInfoDetails
path FluentFs
return IAssemblyInfoDetails

OutputPath() public method

public OutputPath ( string path ) : IAssemblyInfoDetails
path string
return IAssemblyInfoDetails

Product() public method

Sets the product attribute of the assembly
public Product ( string value ) : IAssemblyInfoDetails
value string The product to set
return IAssemblyInfoDetails

Title() public method

Sets the title attribute of the assembly
public Title ( string value ) : IAssemblyInfoDetails
value string The title to use
return IAssemblyInfoDetails

Trademark() public method

Sets the trademark attribute
public Trademark ( string trademark ) : IAssemblyInfoDetails
trademark string The value representing the trademark
return IAssemblyInfoDetails

Version() public method

Sets the assembly version.
public Version ( System.Version value ) : IAssemblyInfoDetails
value System.Version a version object
return IAssemblyInfoDetails

Version() public method

Sets the assembly version.
public Version ( string value ) : IAssemblyInfoDetails
value string a version in the format of Major.Minor.[Build].[Revision]
return IAssemblyInfoDetails