Prerequisites
To build Bulk Crap Uninstaller from source, you’ll need to set up your development environment with the required tools and dependencies.Required Software
Visual Studio
Visual Studio 2019 or 2022 (Community edition works fine)
.NET SDK
.NET 8 SDK (included with Visual Studio)
Visual Studio Workloads
You need to install the following workloads in Visual Studio:.NET desktop development
This workload provides the core .NET desktop development tools required for building the C# projects.
Getting the Source Code
Clone the repository from GitHub:Building with Visual Studio
Open the Solution
Navigate to the
source directory and open BulkCrapUninstaller.sln in Visual Studio.Restore NuGet Packages
Visual Studio should automatically restore NuGet packages when you open the solution. If not, right-click the solution in Solution Explorer and select “Restore NuGet Packages”.
Select Build Configuration
Choose your build configuration:
- Debug - For development with debugging symbols
- Release - For optimized production builds
- Any CPU - Platform-agnostic build
- x64 - 64-bit only
- x86 - 32-bit only
- ARM64 - ARM64 architecture
Build Output
After a successful build, the compiled binaries will be located in:source/BulkCrapUninstaller/bin/Debug/net8.0-windows/source/BulkCrapUninstaller/bin/Release/net8.0-windows/
Solution Structure
The solution contains multiple projects:Main Projects
- BulkCrapUninstaller - GUI application
- BCU-console - Console application
- BCU-launcher - Native launcher
Libraries
- UninstallTools - Core library
- KlocTools - Utility library
- ObjectListView - UI controls
Helpers
- SteamHelper
- WinUpdateHelper
- StoreAppHelper
- OculusHelper
- ScriptHelper
Support
- UninstallerAutomatizer
- UniversalUninstaller
- SimpleTreeMap
- And more…
Building for Release
To create a release build suitable for distribution:Run the Publish Script
The repository includes a This script is located in the root of the repository (parent directory of
publish.bat script that creates optimized release builds:source).Running Tests
The solution includes a test project: BulkCrapUninstallerTestsSome tests require:
- Running as 64-bit process
- Specific applications to be installed on the system
- Administrator privileges
- Open Test Explorer: Test > Test Explorer
- Click Run All or select specific tests
Common Build Issues
Build fails on first attempt
Build fails on first attempt
Try Build > Rebuild Solution. The dependency chain is complex, and a rebuild often resolves ordering issues.
Missing C++ build tools
Missing C++ build tools
If you get errors building BCU-launcher, ensure you have the “Desktop development with C++” workload installed in Visual Studio.
.NET SDK version mismatch
.NET SDK version mismatch
Make sure you have .NET 8 SDK installed. You can check by running:
NuGet package restore fails
NuGet package restore fails
Try:
- Delete the
.vsfolder in the solution directory - Delete
binandobjfolders in all project directories - Restart Visual Studio and rebuild
Development Tips
- Use Debug configuration for development with full debugging support
- The AnyCPU platform is recommended for general development
- Some features may behave differently between 32-bit and 64-bit builds
- Test on multiple platforms if making changes to platform-specific code
Next Steps
Contributing
Learn how to contribute your changes back to the project
Architecture
Understand the codebase structure
