Skip to content

kgen-llc/GitLinkGenerator

Repository files navigation

GitLinkGenerator

Generate a static field representing the hyperlink to the related github content.

For the following class :

[GitPathGenerator.GitPath]
public partial class Class1
{

}

an static const GitPath is added and can used. For example:

Assert.AreEqual("https://github.com/kgen-llc/GitLinkGenerator/blob/dev/GeneratorGitHubSample/Class1.cs", Class1.GitPath);

in order to work, csproj MUST contains PackageProjectUrl property:

<PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <PackageProjectUrl>https://github.com/kgen-llc/GitLinkGenerator</PackageProjectUrl>
</PropertyGroup>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages