AssemblyInfo Class

MSBuild

Generates an AssemblyInfo files


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class AssemblyInfo
    Inherits Task
C#
public class AssemblyInfo : Task
C++
ref class AssemblyInfo : Task
J#
public class AssemblyInfo extends Task
JScript
public class AssemblyInfo extends Task

Example

Generates a common version file.

 Copy Code
            <AssemblyInfo CodeLanguage="CS"  
                OutputFile="VersionInfo.cs" 
                AssemblyVersion="1.0.0.0" 
                AssemblyFileVersion="1.0.0.0" />
            

Generates a complete version file.

 Copy Code
            <AssemblyInfo CodeLanguage="CS"  
                OutputFile="$(MSBuildProjectDirectory)\Test\GlobalInfo.cs" 
                AssemblyTitle="AssemblyInfoTask" 
                AssemblyDescription="AssemblyInfo Description"
                AssemblyConfiguration=""
                AssemblyCompany="Company Name, LLC"
                AssemblyProduct="AssemblyInfoTask"
                AssemblyCopyright="Copyright (c) Company Name, LLC 2006"
                AssemblyTrademark=""
                ComVisible="false"
                CLSCompliant="true"
                Guid="d038566a-1937-478a-b5c5-b79c4afb253d"
                AssemblyVersion="1.0.0.0" 
                AssemblyFileVersion="1.0.0.0" />
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.AssemblyInfo

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.