Skip to content

kyleherzog/AssemblyInfoReaderTask

Repository files navigation

Assembly Info Reader Task

A build task that reads the assembly attributes from the AssemblyInfo file and makes them available as build variables.

Arguments

Path to AssemblyInfo file

**\AssemblyInfo.cs is the default value. This should find the C# AssemblyInfo file in the build sources directory. However, when building a multiple project solution one would want to enter the exact path.

Variables Prefix

The value entered here will be prefixed to each variable name generated. This can be useful when using this task multiple times during a build and pointing each task to different AssemblyInfo files.

Generated Variables

For each assembly attribute found in the AssemblyInfo file, a build variable will be created in the format of AssemblyInfo.PropertyName. (Example: $(AssemblyInfo.AssemblyVersion))

Version type properties found in the AssemblyInfo file will have additional variables made available in the format of AssemblyInfo.PropertyName.VersionSegmentName. (Example: $(AssemblyInfo.AssemblyVersion.Major)) When parsing the version variables, the generated variables are based on the following naming convention Major.Minor.Build.Release. (Note: The Build segment can also be referenced as Patch)

Test Cases

This project contains a PowerShell script for executing rough unit tests which ensure we are detecting expected information for .cs, .vb, and .cob AssemblyInfo files.

They can be run by running TestCases/RunTestCasesV1.ps1 and/or TestCases/RunTestCasesV2.ps1

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages