Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

BuildInfo

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Build Info from C# and VB

Generates a C# or VB ThisAssembly class that contains static information about the build environment. Use it e.g. to construct your AssemblyVersion:

csharp
[assembly: AssemblyVersion ("1.0.0." + ThisAssembly.BuildEvn.BuildId)]

Currently available are:

Available MSBuild customizations:

  • $(BuildInfoThisAssembly): set to 'false' to prevent assembly metadata and constants generation.
  • $(BuildInfoAssemblyMetadata): set to 'false' to prevent assembly metadata generation only. Defaults to 'false'.
  • $(BuildInfoAssemblyNamespace): allows overriding the namespace for the ThisAssembly class. Defaults to the global namespace.

This was inspired by GitInfo which uses the same generation process and can easly be used alongside BuildInfo (https://github.com/kzu/GitInfo))