MSBuild.Version.Target 1.1.17

There is a newer version of this package available.
See the version list below for details.
dotnet add package MSBuild.Version.Target --version 1.1.17
NuGet\Install-Package MSBuild.Version.Target -Version 1.1.17
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="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
#r "nuget: MSBuild.Version.Target, 1.1.17"
#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 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

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

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
4.0.83 82 4/22/2024
4.0.71 1,559 12/14/2023
4.0.65 767 11/9/2023
4.0.60 618 9/23/2023
4.0.55 258 9/23/2023
4.0.52 252 9/20/2023
4.0.47 832 7/24/2023
4.0.46 259 7/17/2023
4.0.43 726 6/19/2023
4.0.39 383 6/7/2023
4.0.33 758 5/4/2023
4.0.32 173 5/3/2023
4.0.27 525 4/3/2023
4.0.14 1,034 1/24/2023
4.0.13 1,040 9/13/2022
3.0.60 1,436 7/26/2020
3.0.59 543 6/27/2020
3.0.52 468 6/27/2020
2.0.47 694 9/18/2019
1.1.44 1,007 8/21/2018
1.1.43 820 8/21/2018
1.1.42 850 8/21/2018
1.1.41 870 8/16/2018
1.1.40 898 8/16/2018
1.1.39 858 8/16/2018
1.1.38 886 8/15/2018
1.1.37 815 8/15/2018
1.1.36 1,065 4/25/2018
1.1.35 973 4/24/2018
1.1.34 998 4/24/2018
1.1.33 1,052 4/24/2018
1.1.32 991 4/24/2018
1.1.31 966 4/24/2018
1.1.30 962 4/24/2018
1.1.29 961 4/24/2018
1.1.28 972 4/24/2018
1.1.27 1,003 4/24/2018
1.1.26 970 4/24/2018
1.1.25 982 4/24/2018
1.1.24 977 4/24/2018
1.1.23 1,048 4/24/2018
1.1.22 982 4/24/2018
1.1.21 975 4/24/2018
1.1.20 999 4/24/2018
1.1.19 1,016 4/24/2018
1.1.18 993 4/24/2018
1.1.17 941 4/24/2018
1.1.15 991 4/24/2018
1.0.14 994 4/24/2018