NetChris.Build.MSBuild
0.0.438178403-pre.24
This is a prerelease version of NetChris.Build.MSBuild.
dotnet add package NetChris.Build.MSBuild --version 0.0.438178403-pre.24
NuGet\Install-Package NetChris.Build.MSBuild -Version 0.0.438178403-pre.24
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="NetChris.Build.MSBuild" Version="0.0.438178403-pre.24" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetChris.Build.MSBuild --version 0.0.438178403-pre.24
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetChris.Build.MSBuild, 0.0.438178403-pre.24"
#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 NetChris.Build.MSBuild as a Cake Addin #addin nuget:?package=NetChris.Build.MSBuild&version=0.0.438178403-pre.24&prerelease // Install NetChris.Build.MSBuild as a Cake Tool #tool nuget:?package=NetChris.Build.MSBuild&version=0.0.438178403-pre.24&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NetChris.Build.MSBuild
Provides:
- Consistent versioning of assemblies and packages
Use
In your project's *.csproj
file:
- Set
<VersionPrefix />
to the{Major}.{Minor}
version of your project - Reference the
NetChris.Build.MSBuild
package
Example:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.1</TargetFramework>
<AssemblyName>NetChris.MyAssembly</AssemblyName>
<RootNamespace>NetChris.Standard.MyAssembly</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<VersionPrefix>0.2</VersionPrefix>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NetChris.Build.MSBuild" Version="0.0.*" />
</ItemGroup>
</Project>
Variables during build
There are a few properties you can set to vary the versioning. These values can also be supplied through environment variables. They are primarily of use in CI/CD scenarios.
Property | Use | Recommended source |
---|---|---|
SemVerPatch |
The SemVer patch version. | Pipeline ID |
SemVerPrerelease |
The SemVer pre-release version, if any | Assuming Pipeline ID for the patch version, just a simple "prerelease" static string. |
AssemblyVersionPatch |
The patch number to use for the assembly (and file) version | Pipeline IID (i.e. project-specific pipeline ID) to keep ⇐ UInt16.MaxValue - 1 |
AssemblyVersionBuild |
The build number to use for the assembly (and file) version | TBD |
References
- Customize your build
- How to: Extend the Visual Studio build process
- Version vs VersionSuffix vs PackageVersion: What do they all mean? (Andrew Lock)
- Create a NuGet package using the dotnet CLI
- Create a package using the nuget.exe CLI / Include MSBuild props and targets in a package
- nuspec reference
- Publish a NuGet package by using CI/CD
- SemVer
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- No dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.438178403-pre.24 | 2 | 12/28/2021 |
0.0.438177077-pre.23 | 2 | 12/28/2021 |
0.0.438177074-pre.22 | 2 | 12/28/2021 |
0.0.438175735-pre.21 | 1 | 12/28/2021 |
0.0.438175731-pre.20 | 2 | 12/28/2021 |
0.0.438162512-pre.19 | 2 | 12/28/2021 |
0.0.438162509-pre.18 | 2 | 12/28/2021 |
0.0.438150592-pre.17 | 1 | 12/28/2021 |
0.0.438150589-pre.16 | 2 | 12/28/2021 |
0.0.438127843-pre.13 | 1 | 12/28/2021 |
0.0.438127724-pre.12 | 1 | 12/28/2021 |
0.0.437711825-pre.10 | 2 | 12/28/2021 |
0.0.437710468-pre.9 | 1 | 12/28/2021 |
0.0.437695406-pre.8 | 0 | 12/28/2021 |
0.0.437688477-pre.7 | 0 | 12/28/2021 |
0.0.437681264-pre.6 | 1 | 12/28/2021 |
0.0.437678123-pre.5 | 1 | 12/28/2021 |
0.0.0-pr2 | 1 | 12/28/2021 |
0.0.0-pr1 | 0 | 12/28/2021 |