Project folder contents

  1. The bin folder of my project has two subfolders Debug and x64. Is this normal? I've changed both the solution and project configuration to Debug | x64 and Release | x64 respectively, instead of AnyCPU, so maybe I can safely delete the Debug folder?
  2. There's a lot of hierarchical subfolders in the bin and obj folders of my project. When doing a Clean current project, I have the impression that only files are deleted and the folders remain. Are they all required even after the cleanup?
0
1 comment

Hello Becrylen,

1. This is normal behavior, the project was likely built as AnyCPU at least once and then x64 (not necessarily in that order). AnyCPU build generated Debug direcotory and x64 build generated x64. These folders can be safely removed, another build will generate and populate directories as needed.

2. This is the expected behavior of cleanup. If you are curious to see an exact list of files being deleted when cleaning the project, you can invoke dotnet clean from command line. Strictly speaking, they are not required - you can delete both bin and obj and you will still be able to open and build the project, but they will be generated automatically during build and at design time when necessary (for example, when you open a project in Rider). 

 

Note that these files are generated by IDEs or build tooling when necessary, so they should be ignored in version control.

0

Please sign in to leave a comment.