Skip to content
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

A very weird interaction of VS, NuGetizer and NuGet with packages.lock.json file. #504

Open
voroninp opened this issue Jul 24, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@voroninp
Copy link

voroninp commented Jul 24, 2024

Describe the Bug

https://developercommunity.visualstudio.com/t/Packages-Restore-done-by-VS-and-dotnet/10709497

When I reference NuGetizer project Rebuild action in VS causes NuGet to generate bad packages.lock.json file. See the description above. I am not 100% sure it is NuGetizer's bug, TBH.

Steps to Reproduce

See this repository: https://github.com/voroninp/BadRestore for reoridcution.
Run rebuild, then check packages.lock.json.file of BadRestore project.
Comment out the reference to NuGetizer in ReferencedProject.
Run rebuid several times, check packages.lock.json.file of BadRestore project again and see that referencedproject changed to A.Prefix.Referenced.Project.

Expected Behavior

I'd expect that Rebuild and dotnet restore --force-evaluate produce the same result.

Version Info

1.2.2

Back this issue
Back this issue

@voroninp voroninp added the bug Something isn't working label Jul 24, 2024
@kzu
Copy link
Member

kzu commented Aug 5, 2024

Consider sponsoring to help prioritize: https://github.com/sponsors/devlooped

It can be helpful when diagnosing an issue to collect binlogs and compare the deltas. I don't personally ever use RestorePackagesWithLockFile so this is very low priority for me.

@kzu kzu added the help wanted Extra attention is needed label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants