GitInfo icon indicating copy to clipboard operation
GitInfo copied to clipboard

I have to reinstall the GitInfo package in order for it to work

Open david-wsd opened this issue 3 years ago • 0 comments

Describe the Bug

GitInfo does not create ThisAssembly.Git.g.cs after package restore. I have to reinstall GitInfo for it to work.

Steps to Reproduce

  1. Install the GitInfo Nuget package to a cs project. As expected, ThisAssembly.Git.g.cs gets successfully created.
  2. Commit the changes to git.
  3. Clone the solution in another folder, and build. Visual Studio automatically restores GitInfo. However for me, ThisAssembly.Git.g.cs doesn't get created. and won't get created until reinstalling GitInfo, like so: Update-Package GitInfo -reinstall

Has anyone else encountered this issue? Any insight as to why reinstall works, but restore doesn't?

Additional Info

I'm developing in c#, .NET Framework 4.6.2

david-wsd avatar Jun 07 '22 23:06 david-wsd