{"id":13629593,"url":"https://github.com/Elskom/GitBuildInfo.SourceGenerator","last_synced_at":"2025-04-17T09:35:01.371Z","repository":{"id":42382436,"uuid":"351920724","full_name":"Elskom/GitBuildInfo.SourceGenerator","owner":"Elskom","description":"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.","archived":false,"fork":false,"pushed_at":"2022-04-07T22:24:22.000Z","size":119,"stargazers_count":39,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-03T04:07:36.312Z","etag":null,"topics":["csharp","csharp-sourcegenerator","source-generator","sourcegenerator"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Elskom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2021-03-26T21:52:31.000Z","updated_at":"2024-10-18T08:44:40.000Z","dependencies_parsed_at":"2022-09-12T00:52:06.990Z","dependency_job_id":null,"html_url":"https://github.com/Elskom/GitBuildInfo.SourceGenerator","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elskom%2FGitBuildInfo.SourceGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elskom%2FGitBuildInfo.SourceGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elskom%2FGitBuildInfo.SourceGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elskom%2FGitBuildInfo.SourceGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elskom","download_url":"https://codeload.github.com/Elskom/GitBuildInfo.SourceGenerator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223751261,"owners_count":17196597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","csharp-sourcegenerator","source-generator","sourcegenerator"],"created_at":"2024-08-01T22:01:14.448Z","updated_at":"2024-11-08T20:31:20.911Z","avatar_url":"https://github.com/Elskom.png","language":"C#","readme":"# GitBuildInfo.SourceGenerator\nSource 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.\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/d13da68cd3784f1486af29432e75e707)](https://www.codacy.com/gh/Elskom/GitBuildInfo.SourceGenerator/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=Elskom/GitBuildInfo.SourceGenerator\u0026amp;utm_campaign=Badge_Grade)\n[![Codacy Coverage Badge](https://app.codacy.com/project/badge/Coverage/d13da68cd3784f1486af29432e75e707)](https://www.codacy.com/gh/Elskom/GitBuildInfo.SourceGenerator/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=Elskom/GitBuildInfo.SourceGenerator\u0026amp;utm_campaign=Badge_Coverage)\n\n| Package | Version |\n|:-------:|:-------:|\n| GitBuildInfo.SourceGenerator | [![NuGet Badge](https://buildstats.info/nuget/GitBuildInfo.SourceGenerator?includePreReleases=true)](https://www.nuget.org/packages/GitBuildInfo.SourceGenerator/) |\n\n## Usage\n\n1. Install this package into your project with:\n```xml\n\u003cPackageReference Include=\"GitBuildInfo.SourceGenerator\" IsImplicitlyDefined=\"true\" Version=\"*-*\"\u003e\n  \u003cPrivateAssets\u003eall\u003c/PrivateAssets\u003e\n\u003c/PackageReference\u003e\n```\n2. Set the following msbuild properties in your project (or if you have all project file property settings stored in a project specific ``Directory.Build.props``) file:\n  * ``\u003cGitBuildInfoIsGeneric\u003e\u003c/GitBuildInfoIsGeneric\u003e`` (Optional, default is false)\n  * ``\u003cGitBuildInfoAssemblyType\u003e\u003c/GitBuildInfoAssemblyType\u003e`` (Required, Note: Do not include anything before the type name like a fully qualified namespace or any ``.``'s. For that you need to set ``RootNamespace`` below)\n  * ``\u003cRootNamespace\u003e\u003c/RootNamespace\u003e`` (Required unless you want the type to be assumed to be in the ``Elskom.Generic.Libs`` namespace by the generator)\n3. The generator package should now run a build task to grab information prior to it executing the generator.\n","funding_links":[],"categories":["Source Generators","Do not want to test 112 ( old ISourceGenerator )"],"sub_categories":["Other","1. [ThisAssembly](https://ignatandrei.github.io/RSCG_Examples/v2/docs/ThisAssembly) , in the [EnhancementProject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) category"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElskom%2FGitBuildInfo.SourceGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElskom%2FGitBuildInfo.SourceGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElskom%2FGitBuildInfo.SourceGenerator/lists"}