NetRevisionTask
NetRevisionTask copied to clipboard
Injects the current VCS revision of a working directory in a custom format into a .NET assembly build. Based on the .NET Revision Tool, integrated as an MSBuild task, for .NET Framework and .NET Core.
Just upgraded to VS2022 v17.8.3 and have discovered that my NrtRevisionFormat has stopped working as expected. For example: ``` 1.0.{revnum} ({chash:5}) ``` The expected result is something like > 1.0.1234...
I got to work on a repository with multiple versions for different projects within that repository (mono repository). The tags are named with folders - project1/v1.0.0 - project1/v1.2.3 - project2/v0.1.0...
Hello Yves, I have added an Interactive API as extension to the already present static methods, so I can use NetRevisionTask.dll be called and queried by other assemlies, e.g. to...
I have added findings of VSSpell001 spell-checking to '.editorconfig' ignore words. In addition, I have added static code analyzer 'Microsoft.CodeAnalysis.NetAnalyzers' and implemented suggestions.
Hello Yves, I have extended Net Revision Task with the following changes: - Implemented resolving of `AssemblyMetadata` attributes value format strings (enabled by default) - BuildTime is updated if `GetVersion()`...
Added public StrongName signing for Release build configuration, so the NetRevisionTask.dll can be called by strong named assemblies. If you think signing of Debug builds is also a good idea,...
When are these new hashes used, how do they behave and what are the differences for formatting. Maybe only the maximum hash length needs to change, but that needs some...
If a `{semvertag}` format is used but the version tag is not SemVer-compliant, a warning should be printed or the build should be aborted. Invalid SemVer versions are for example...
Added a new option '**NrtProcessAnyProperty**' to process format strings in any property. So it's possible to add more defined custom attributes like this: ``` [assembly: AssemblyGitRevision("{CHASH}{!:*}")] [assembly: AssemblyBuildTime("{b:uymd-} {b:uhms:}")] ```