CMB.BuildTools 1.0.2.28

A set of classes for building development projects that can be integrated into other build tools.

Install-Package CMB.BuildTools -Version 1.0.2.28
dotnet add package CMB.BuildTools --version 1.0.2.28
<PackageReference Include="CMB.BuildTools" Version="1.0.2.28" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CMB.BuildTools --version 1.0.2.28
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Build Tools Documentation

The goal of the build tool library is to provide a set of classes that can be integrated into other build tools to allow projects to be built. Currently it only supports updating information in a C# assembly information file.

Assembly Information Files

Below are some examples of how to use the library to load and update an assembly information file.

Loading Assembly Information

The example below will load the data from the assembly information file and store its information within properties within the class.

AssemblyInfoFile assemblyInfo = new AssemblyInfoFile();
await assemblyInfo.ParseFile("AssemblyInfo.cs");

Modifying the Assembly Version and Saving the File

The example below will increment the revision number in the assembly information file by 1 and save the changes.

AssemblyInfoFile assemblyInfo = new AssemblyInfoFile();
await assemblyInfo.ParseFile("AssemblyInfo.cs");
assemblyInfo.Version.Revision++;
await assemblyInfo.Save("AssemblyInfo.cs", Encoding.UTF8);

Build Tools Documentation

The goal of the build tool library is to provide a set of classes that can be integrated into other build tools to allow projects to be built. Currently it only supports updating information in a C# assembly information file.

Assembly Information Files

Below are some examples of how to use the library to load and update an assembly information file.

Loading Assembly Information

The example below will load the data from the assembly information file and store its information within properties within the class.

AssemblyInfoFile assemblyInfo = new AssemblyInfoFile();
await assemblyInfo.ParseFile("AssemblyInfo.cs");

Modifying the Assembly Version and Saving the File

The example below will increment the revision number in the assembly information file by 1 and save the changes.

AssemblyInfoFile assemblyInfo = new AssemblyInfoFile();
await assemblyInfo.ParseFile("AssemblyInfo.cs");
assemblyInfo.Version.Revision++;
await assemblyInfo.Save("AssemblyInfo.cs", Encoding.UTF8);

Release Notes

Fixed a bug that was preventing changes to assembly version numbers from being saved.
Now also support .NET standard 2.0.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2.28 246 6/24/2018
1.0.1.23 245 3/18/2018
1.0.0.15 267 3/17/2018