Skip to content

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

Description

@david-wsd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    need infoMore info needed to diagnose the issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions