SimpleGitVersion.SimpleRepositoryInfo.BuildAssemblyVersionAttributesFile C# (CSharp) Method

BuildAssemblyVersionAttributesFile() public method

Builds a standard assembly version attributes file.
public BuildAssemblyVersionAttributesFile ( string toolName = "SimpleGitVersion.Core", string assemblyInformationalVersionInfo = null ) : string
toolName string Name of the tool.
assemblyInformationalVersionInfo string /// The assembly informational version information. /// Defaults to . ///
return string
        public string BuildAssemblyVersionAttributesFile( string toolName = "SimpleGitVersion.Core", string assemblyInformationalVersionInfo = null )
        {
            if( assemblyInformationalVersionInfo == null )
            {
                assemblyInformationalVersionInfo = FomatStandardAssemblyInformationalVersionInfo( NuGetVersion, CommitSha, CurrentUserName );
            }
            string text = FormatAssemblyVersionAttributesFile( MajorMinor, FileVersion, SemVer, toolName, assemblyInformationalVersionInfo );
            return text;
        }