obj and bin folders
These folders are automatically generated during build and contain compiled output and intermediate files.
/bin Folder
Section titled “/bin Folder”- bin/Debug/net8.0/: Debug build output
- bin/Release/net8.0/: Release build output
- Contains: .exe, .dll, .pdb (debug symbols), .runtimeconfig.json
/obj Folder
Section titled “/obj Folder”- Intermediate build artifacts
- obj/Debug/net8.0/: Object files, temporary assemblies
- obj/project.assets.json: NuGet dependency cache
Best Practices
Section titled “Best Practices”- Add to .gitignore: Never commit bin/ or obj/ folders
- Clean builds:
dotnet cleanremoves these folders - Do not edit manually: Files are generated automatically
# Clean build artifactsdotnet clean
# Delete folders manually (Windows)rmdir /s /q bin obj
# Delete folders manually (Linux/macOS)rm -rf bin obj ```