Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Source Generator for dumping the git branch information, commit hash, and if the working tree is dirty or clean on projects that install this and applies them as an assembly level attribute.

License

NotificationsYou must be signed in to change notification settings

Elskom/GitBuildInfo.SourceGenerator

Source Generator for dumping the git branch information, commit hash, and if the working tree is dirty or clean on projects that install this and applies them as an assembly level attribute.

Codacy BadgeCodacy Coverage Badge

PackageVersion
GitBuildInfo.SourceGeneratorNuGet Badge

Usage

  1. Install this package into your project with:
<PackageReferenceInclude="GitBuildInfo.SourceGenerator"IsImplicitlyDefined="true"Version="*-*">  <PrivateAssets>all</PrivateAssets></PackageReference>
  1. Set the following msbuild properties in your project (or if you have all project file property settings stored in a project specificDirectory.Build.props) file:
  • <GitBuildInfoIsGeneric></GitBuildInfoIsGeneric> (Optional, default is false)
  • <GitBuildInfoAssemblyType></GitBuildInfoAssemblyType> (Required, Note: Do not include anything before the type name like a fully qualified namespace or any.'s. For that you need to setRootNamespace below)
  • <RootNamespace></RootNamespace> (Required unless you want the type to be assumed to be in theElskom.Generic.Libs namespace by the generator)
  1. The generator package should now run a build task to grab information prior to it executing the generator.

About

Source Generator for dumping the git branch information, commit hash, and if the working tree is dirty or clean on projects that install this and applies them as an assembly level attribute.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp