-
Notifications
You must be signed in to change notification settings - Fork 258
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
VS Rebuild doesn't reinstall changed packages into global-packages (In last version 16.8.0 preview 3.1) #10060
Comments
Afaik, this behavior is consistent. NuGet never reinstalls packages in the global packages folder. How does the second project consume the first one? |
@nkolev92 Create "Local" source (I use path C:\NuGet\Repository). Also be careful, nuget may install package from nuget.org. It's not my package!!! |
NuGet wouldn't replace a correctly installed package. What you are describing is the expected behavior in both 16.7 and 16.8. I think this doc well describes the NuGet installation process: https://docs.microsoft.com/en-us/nuget/concepts/package-installation-process Do you still have 16.7 on your machine? If you are seeing anything similar to what your describing with the old version, I'd love to help understnad the behavior. |
You know better. The difference between build and rebuild:
So, probably rebuild should not do something with packages. At least it will be faster. |
We appreciate the feedback @Denis535. The restore that NuGet tends to run in VS is designed to be as seamless as possible, and while there is a slight difference between I think among #6987 and #6579, I hope your problem is captured. Closing as dup #6579. |
Hi @Denis535 . I've faced your same problem. To avoid to be forced to clear global-packages manually, I recently make my solution public by releasing a package called NuJet (https://github.com/gioce90/NuJet). It enhances the inner-loop development and testing process for NuGet packages, especially in local workflows. Feel free to check it out—I’d love to hear your feedback! |
I have solution with 2 projects.
First project produces nuget package into local repository.
Second project consumes this package.
I had to rebuild the project for the modified package to be reinstalled into
global-packages
.But today I've updated Visual Studio to version 16.8.0 preview 3.1. And now rebuild doesn't reinstall the modified package. I'm forced to clear
global-packages
manually.The text was updated successfully, but these errors were encountered: