BuildInfo 0.0.5

dotnet add package BuildInfo --version 0.0.5
NuGet\Install-Package BuildInfo -Version 0.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BuildInfo" Version="0.0.5">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BuildInfo --version 0.0.5
#r "nuget: BuildInfo, 0.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BuildInfo as a Cake Addin
#addin nuget:?package=BuildInfo&version=0.0.5

// Install BuildInfo as a Cake Tool
#tool nuget:?package=BuildInfo&version=0.0.5

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:

[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).

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.5 479 1/4/2023
0.0.4 2,894 1/30/2019