Skip to content

AssemblyInfo

rosaliafx edited this page Dec 2, 2015 · 4 revisions

AssemblyInfo package has a single task GenerateAssemblyInfo that generates AssemblyInfo.cs file for your solution.

NuGet install (Make sure to set Pre-Release option):

PM> Install-Package Rosalia.TaskLib.AssemblyInfo

Task: GenerateAssemblyInfo

Generates AssemblyInfo.cs file with provided set of attributes and saves it to a file.

Input List of attributes, Output file path
Output none
Example
ITaskFuture<Nothing> = Task(
    "GenerateAssemblyInfo",
    new GenerateAssemblyInfo(WorkDirectory/"Src"/"CommonAssemblyInfo.cs")
    {
        Attributes =
        {
            _ => new AssemblyProductAttribute("MyProjectName"),
            _ => new AssemblyVersionAttribute("1.0.0.0"),
            _ => new AssemblyFileVersionAttribute("1.0.0.0")
        }
    });