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.
<PackageVersion Include="MSBuild.Version.Target" Version="1.1.17" />
                    
Directory.Packages.props
<PackageReference Include="MSBuild.Version.Target" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package MSBuild.Version.Target@1.1.17
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MSBuild.Version.Target&version=1.1.17
                    
Install as a Cake Addin
#tool nuget:?package=MSBuild.Version.Target&version=1.1.17
                    
Install as a Cake Tool

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.150 2,592 11/17/2024
4.0.147 386 11/17/2024
4.0.141 333 11/17/2024
4.0.138 336 11/16/2024
4.0.135 348 11/16/2024
4.0.130 333 11/16/2024
4.0.123 344 11/16/2024
4.0.120 328 11/16/2024
4.0.117 350 11/16/2024
4.0.114 459 10/28/2024
4.0.111 769 9/2/2024
4.0.105 373 8/27/2024
4.0.100 394 8/26/2024
4.0.84 2,024 6/19/2024
4.0.83 5,926 4/22/2024
4.0.71 2,054 12/14/2023
4.0.65 2,082 11/9/2023
4.0.60 879 9/23/2023
4.0.55 526 9/23/2023
4.0.52 521 9/20/2023
4.0.47 1,121 7/24/2023
4.0.46 554 7/17/2023
4.0.43 1,039 6/19/2023
4.0.39 662 6/7/2023
4.0.33 1,062 5/4/2023
4.0.32 464 5/3/2023
4.0.27 837 4/3/2023
4.0.14 1,350 1/24/2023
4.0.13 1,379 9/13/2022
3.0.60 1,808 7/26/2020
3.0.59 912 6/27/2020
3.0.52 824 6/27/2020
2.0.47 1,078 9/18/2019
1.1.44 1,403 8/21/2018
1.1.43 1,231 8/21/2018
1.1.42 1,224 8/21/2018
1.1.41 1,261 8/16/2018
1.1.40 1,295 8/16/2018
1.1.39 1,264 8/16/2018
1.1.38 1,305 8/15/2018
1.1.37 1,206 8/15/2018
1.1.36 2,019 4/25/2018
1.1.35 1,932 4/24/2018
1.1.34 1,913 4/24/2018
1.1.33 2,015 4/24/2018
1.1.32 1,945 4/24/2018
1.1.31 1,921 4/24/2018
1.1.30 1,937 4/24/2018
1.1.29 1,914 4/24/2018
1.1.28 1,943 4/24/2018
1.1.27 1,936 4/24/2018
1.1.26 1,913 4/24/2018
1.1.25 1,958 4/24/2018
1.1.24 1,925 4/24/2018
1.1.23 1,989 4/24/2018
1.1.22 1,945 4/24/2018
1.1.21 1,941 4/24/2018
1.1.20 1,912 4/24/2018
1.1.19 1,940 4/24/2018
1.1.18 1,965 4/24/2018
1.1.17 1,910 4/24/2018
1.1.15 1,924 4/24/2018
1.0.14 1,937 4/24/2018