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

后端 未结 26 1955
迷失自我
迷失自我 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

    Here is the answer I gave to a similar question, Simple, easy, works pretty good and does not require anything else than what you already have with Visual Studio.

    As others have responded already Clean will remove all artifacts that are generated by the build. But it will leave behind everything else.

    If you have some customizations in your MSBuild project this could spell trouble and leave behind stuff you would think it should have deleted.

    You can circumvent this problem with a simple change to your .*proj by adding this somewhere near the end :

    
        
    
    

    Which will remove everything in your bin folder of the current platform/configuration.

提交回复
热议问题