How to clean all unnessary files from the solution
井民全, Jing, mqjing@gmail.com
Back to Windows Main Page
Google doc: This document.
Quick Guide
清除所有的東西
恢復 Package
|
Purpose
Reduce whole visual studio solution size from ~MB to ~KB. 有時候你會想做一些實驗性質的 projects, 完成實驗後, 希望能夠把整個 solution保留下來. 但問題是當你做 make clean 時, 卻發現整個 solution 大小還有數百 MB, 這是因為你的專案還有使用其他第三方packages 的關係, 本文介紹一個方法可以讓你只保留 solution中最重要的部份, 剩下的全部砍掉. 最終大小只有數百 KB.
因此可以向我一樣放心的進行各種實驗並且收集各式各樣的實驗 solution 結果.
e.g.
怎麼做?
Clean All
只要把下面的目錄全部刪除, 即可
- package folder
- obj folder
- bin folder
Restore All Packages
Command
[Tools] -> [NuGet Package Manager] -> [Manage NuGet Packages for Solution...]