Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
david-wsd opened this issue Jun 7, 2022 · 1 comment
Closed
Labels
need info More info needed to diagnose the issue

Comments

@david-wsd
Copy link

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

@kzu
Copy link
Member

kzu commented Feb 6, 2023

If you do a rebuild, it should still do the right thing. Could you provide more info on what .NET SDK/VS versions are you using and so on? This is working flawlessly on many many projects, so it may be some weird combination.

@kzu kzu added need info More info needed to diagnose the issue and removed bug labels Feb 6, 2023
@devlooped devlooped locked and limited conversation to collaborators Feb 6, 2023
@kzu kzu converted this issue into discussion #223 Feb 6, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
need info More info needed to diagnose the issue
Projects
None yet
Development

No branches or pull requests

2 participants