DhyMik.DocFx.UpdateDocFxVersionAttributeTask
1.1.0
dotnet add package DhyMik.DocFx.UpdateDocFxVersionAttributeTask --version 1.1.0
NuGet\Install-Package DhyMik.DocFx.UpdateDocFxVersionAttributeTask -Version 1.1.0
<PackageReference Include="DhyMik.DocFx.UpdateDocFxVersionAttributeTask" Version="1.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
paket add DhyMik.DocFx.UpdateDocFxVersionAttributeTask --version 1.1.0
#r "nuget: DhyMik.DocFx.UpdateDocFxVersionAttributeTask, 1.1.0"
// Install DhyMik.DocFx.UpdateDocFxVersionAttributeTask as a Cake Addin
#addin nuget:?package=DhyMik.DocFx.UpdateDocFxVersionAttributeTask&version=1.1.0
// Install DhyMik.DocFx.UpdateDocFxVersionAttributeTask as a Cake Tool
#tool nuget:?package=DhyMik.DocFx.UpdateDocFxVersionAttributeTask&version=1.1.0
Show up-to-date version information in your DocFx documentation.
This MS build task adds dll version information to a DocFx configuration file and keeps it in sync with the project's version information on every build. In addition, `globalMetadata` attributes are written as css variables to a css file.
In this way, the documentation pages generated by DocFx can contain up-to-date version information without the need for manual updates of the DocFx configuration file.
A full example with the necessary markup changes to DocFx template files can be found on the project's website.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Build.Utilities.Core (>= 16.10.0)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Release v1.1.0: Added generation of `globalMetadataVariables.css` file with css variables generated from `globalMetadata` attributes in `docfx.json`. This adds an alternative way to include `version` and other custom data in DocFx output.