Simple question. Is it safe to delete the "Packages" folder inside a VS project? The folder is too big and if I need to send a project somewhere its would take a long time. Will VS re-download the packages after deletion or this will broke the project?
Asked
Active
Viewed 2,067 times
1 Answers
1
Normally, this is not a problem. Of course, it depends on the question if the packages can be re-aquired.
For instance, when all packages were installed by the nuget package manager, and were not unlisted or such, it should be no problem.
PS: I recommend you still try it out.
If you are using git, you can easily just try it out, and if it doesnt work, revert.

Michael Schönbauer
- 962
- 5
- 14
-
All my packages are downloaded by nuget package manager inside VS so it should not be a problem to delete it. Right? – Kostej Jan 03 '21 at 14:58
-
Normally, its no problem. I cant try it out (im having .netcore projects), but yes, it should be no problem. I think that folder is only meant as local cache. – Michael Schönbauer Jan 03 '21 at 15:01
-
here check this https://stackoverflow.com/questions/12110471/what-is-the-packages-directory-in-visual-studio-should-i-include-it-in-svn – Michael Schönbauer Jan 03 '21 at 15:03