In Visual Studio, what does the “Clean” command do?

前端 未结 5 669
小鲜肉
小鲜肉 2020-12-13 08:11

You know, the one that outputs this=>

------ Clean started: Project: Foo.Bar, Configuration: Debug Any CPU ------
========== Clean: 1 succeeded,

5条回答
  •  执笔经年
    2020-12-13 08:37

    The output directories - it removes the code that it's previously built.

    It doesn't remove the bin/obj directories themselves (or the Debug/Release directories beneath them), just the actual .exe, .dll, etc files. Unfortunately this makes it less useful for my usual use of cleaning up output directories: when I want to zip up the source code. As the Clean action doesn't do this, I usually just delete the bin and obj directories directly.

提交回复
热议问题