Skip to content

stephenquan/GitVersionTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitVersionTest

This project demonstrates a workaround to enable GitVersion.MsBuild 6.x integration for projects running in the Visual Studio IDE.

Overview

GitVersion automates semantic versioning based on your Git history. This sample shows how to configure your .csproj and use the generated version information in your application.

How It Works

  • The project uses the GitVersion.MsBuild NuGet package.
  • The .csproj file includes a custom MSBuild target (GetVersionForVisualStudio) to generate version info using dotnet gitversion.
  • Version metadata is injected into the assembly and accessed at runtime.

Files of Interest

  • GitVersionTest.csproj : MSBuild configuration and GitVersion integration.
  • Program.cs : Example code showing how to read GitVersion metadata from the assembly at runtime.

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages