MSBuild.Version.Target 1.1.17

A custom build target to increase project version (AssemblyInfo.cs) automatically on each build (non-RELEASE only)

There is a newer version of this package available.
See the version list below for details.
Install-Package MSBuild.Version.Target -Version 1.1.17
dotnet add package MSBuild.Version.Target --version 1.1.17
<PackageReference Include="MSBuild.Version.Target" Version="1.1.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MSBuild.Version.Target --version 1.1.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MSBuild.Version.Target, 1.1.17"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MSBuild.Version.Target as a Cake Addin
#addin nuget:?package=MSBuild.Version.Target&version=1.1.17

// Install MSBuild.Version.Target as a Cake Tool
#tool nuget:?package=MSBuild.Version.Target&version=1.1.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MSBuild.Version.Target

Build status MSBuild.Version.Target NuGet Version MSBuild.Version.Target NuGet Downloads

Provides a NuGet package that adds functionality to your project to auto increment the version build before every non release configuration build.

This package adds a Version.txt with SemVer version (you must update the major and minor version manually, only build is updated via this functionality).

The target updates the AssemblyInfo.cs and the Version.txt of the installed project after each build that is not with the Release configuration.


NuGet package: https://www.nuget.org/packages/MSBuild.Version.Target

Install-Package MSBuild.Version.Target

After installation, open Properties>Version.txt and update the file to match your current project version (SemVer like: Major.Minor.Patch, as Patch being the Build incremental).

Open the .csproj file of the project (via Notepad, Notepad++, VS Code, any text editor you prefer) and at the bottom of the file add the following code (NuGet dosen't allow changes in the .csproj automaticly):

<Target Name="BeforeBuild">
    //..others targets calls already in your .csproj BeforeBuild target, if any.
    <CallTarget Targets="MSBuild.Version.Target" />
</Target>

Be careful, check if you already have a target named "BeforeBuild" in your .csproj, if so, just call the target to increment, else create the Target BeforeBuild as the example above

MSBuild.Version.Target

Build status MSBuild.Version.Target NuGet Version MSBuild.Version.Target NuGet Downloads

Provides a NuGet package that adds functionality to your project to auto increment the version build before every non release configuration build.

This package adds a Version.txt with SemVer version (you must update the major and minor version manually, only build is updated via this functionality).

The target updates the AssemblyInfo.cs and the Version.txt of the installed project after each build that is not with the Release configuration.


NuGet package: https://www.nuget.org/packages/MSBuild.Version.Target

Install-Package MSBuild.Version.Target

After installation, open Properties>Version.txt and update the file to match your current project version (SemVer like: Major.Minor.Patch, as Patch being the Build incremental).

Open the .csproj file of the project (via Notepad, Notepad++, VS Code, any text editor you prefer) and at the bottom of the file add the following code (NuGet dosen't allow changes in the .csproj automaticly):

<Target Name="BeforeBuild">
    //..others targets calls already in your .csproj BeforeBuild target, if any.
    <CallTarget Targets="MSBuild.Version.Target" />
</Target>

Be careful, check if you already have a target named "BeforeBuild" in your .csproj, if so, just call the target to increment, else create the Target BeforeBuild as the example above

Dependencies

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 History

Version Downloads Last updated
3.0.60 420 7/26/2020
3.0.59 229 6/27/2020
3.0.52 171 6/27/2020
2.0.47 310 9/18/2019
1.1.44 645 8/21/2018
1.1.43 454 8/21/2018
1.1.42 451 8/21/2018
1.1.41 481 8/16/2018
1.1.40 495 8/16/2018
1.1.39 443 8/16/2018
1.1.38 472 8/15/2018
1.1.37 452 8/15/2018
1.1.36 601 4/25/2018
1.1.35 518 4/24/2018
1.1.34 536 4/24/2018
1.1.33 587 4/24/2018
1.1.32 528 4/24/2018
1.1.31 540 4/24/2018
1.1.30 522 4/24/2018
1.1.29 529 4/24/2018
1.1.28 525 4/24/2018
1.1.27 536 4/24/2018
1.1.26 548 4/24/2018
1.1.25 537 4/24/2018
1.1.24 520 4/24/2018
1.1.23 607 4/24/2018
1.1.22 531 4/24/2018
1.1.21 527 4/24/2018
1.1.20 527 4/24/2018
1.1.19 537 4/24/2018
1.1.18 527 4/24/2018
1.1.17 520 4/24/2018
1.1.15 539 4/24/2018
1.0.14 536 4/24/2018
Show less