I want to delete all bin and obj folders to force all projects to rebuild everything

后端 未结 26 2085
迷失自我
迷失自我 2020-11-28 16:53

I work with multiple projects, and I want to recursively delete all folders with the name \'bin\' or \'obj\' that way I am sure that all projects will rebuild everything (so

26条回答
  •  一整个雨季
    2020-11-28 17:42

    from Using Windows PowerShell to remove obj, bin and ReSharper folders

    very similar to Robert H answer with shorter syntax

    1. run powershell
    2. cd(change dir) to root of your project folder
    3. paste and run below script

      dir .\ -include bin,obj,resharper* -recurse | foreach($) { rd $_.fullname –Recurse –Force}

提交回复
热议问题