Visual Studio: Cleaning Your Projects

Visual Studio projects can easily grow to tens of Megabytes in size after you successfully build your program. Cleaning your projects before submitting them through Canvas dramatically reduces their sizes, removing the assemblies and debugging files that contribute most of the project's size.

  1. With your project open in Visual Studio, choose Build menu > Clean Solution.

    • This removes all compiled assemblies (.exe, .dll files) and object (.obj) files from your projects, but does not remove the debugging files.
  2. In the Solution Explorer, right-click on the solution icon and choose Open Folder in File Explorer.

  3. Close your project's solution (File menu > Close Solution), or exit out of Visual Studio entirely.

  4. In File Explorer, go up one level to your solution's top-level folder.

  5. Make sure you're able to view Hidden Items in File Explorer.

  6. A: In the toolbar, select the View menu, then check Hidden Items:

  7. Delete the .vs folder:

  8. Delete all Debug folders, including the main Solution's (see below) and those in all Projects:

×

Do these steps for each project in your Visual Studio solution. Once that is done, you can ZIP or RAR your project and submit it through Canvas.

Related Links