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

后端 未结 26 2075
迷失自我
迷失自我 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 18:00

    I actually hate obj files littering the source trees. I usually setup projects so that they output obj files outside source tree. For C# projects I usually use

     ..\..\obj\$(AssemblyName)\$(Configuration)\
    

    For C++ projects

     IntermediateDirectory="..\..\obj\$(ProjectName)\$(ConfigurationName)"
    

提交回复
热议问题