On installation your PreBuildEvent is replaced by a "git describe" command that writes it's output to a file.
Your project must be inside a git repo during the build.
You must have at least on tag before your (or on) your current git commit object. The used PreBuildCommand will fail if you don't.
See the version list below for details.
Install-Package AutoGitVersion -Version 0.0.2
dotnet add package AutoGitVersion --version 0.0.2
<PackageReference Include="AutoGitVersion" Version="0.0.2" />
paket add AutoGitVersion --version 0.0.2
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.