C# Class XSharp.Build.CreateXSharpManifestResourceName

Base class for task that determines the appropriate manifest resource name to assign to a given resx or other resource. Inspired by https://github.com/Microsoft/msbuild/blob/master/src/XMakeTasks/CreateCSharpManifestResourceName.cs
Inheritance: Microsoft.Build.Tasks.CreateManifestResourceName
Mostra file Open project: X-Sharp/XSharpPublic Class Usage Examples

Protected Methods

Method Description
CreateManifestName ( string fileName, string linkFileName, string rootNamespace, string dependentUponFileName, Stream binaryStream ) : string

Utility function for creating a C#-style manifest name from a resource name.

IsSourceFile ( string fileName ) : bool

Return 'true' if this is a X# source file.

Private Methods

Method Description
CreateManifestNameImpl ( string fileName, string linkFileName, bool prependCultureAsDirectory, string rootNamespace, string dependentUponFileName, string culture, Stream binaryStream, Microsoft.Build.Utilities.TaskLoggingHelper log ) : string

Utility function for creating a X#-style manifest name from a resource name. Note that this function is inspired by the similar C# function

GetFirstClassNameFullyQualified ( string fileName, Stream binaryStream, Microsoft.Build.Utilities.TaskLoggingHelper log ) : Microsoft.Build.Tasks.ExtractedClassName

Method Details

CreateManifestName() protected method

Utility function for creating a C#-style manifest name from a resource name.
protected CreateManifestName ( string fileName, string linkFileName, string rootNamespace, string dependentUponFileName, Stream binaryStream ) : string
fileName string The file name of the dependent (usually a .resx)
linkFileName string The file name of the dependent (usually a .resx)
rootNamespace string The root namespace (usually from the project file). May be null
dependentUponFileName string The file name of the parent of this dependency (usually a .cs file). May be null
binaryStream Stream File contents binary stream, may be null
return string

IsSourceFile() protected method

Return 'true' if this is a X# source file.
protected IsSourceFile ( string fileName ) : bool
fileName string Name of the candidate source file.
return bool