Auxiliary file locations in VB 2005

Compared with pre- .NET versions of Visual Basic, VB 2005 generates a number of additional files, mostly in project subfolders like Bin, My Project, and obj: .pdb, .resources, .cache, .vshost.exe files, and the like. So far as I can tell, they're auto-generated perhaps at build time, but because they reside in the folder tree with the source files the whole collection gets backed up, ballooning the backup unnecessarily. Is there a way to break out those files into another location separate from the source and form-design files

Answer this question

Auxiliary file locations in VB 2005

  • Olegam

    Thanks! That took care of the .\bin and .\bin\Debug files (VB 2005 still creates the folders, but they're empty). It's still allocating .\obj and .\obj\Debug folders with auto-created .pdb, .cache, and .resources files, though; is there another setting to redirect them to an out-of-the-way location
  • pest

    you can add a Post build event to delete obj files

    Solution Explorer -> My Project -> Compile tab -> Build Events -> in Post-Build event command line, add a command simular to this

    del /S "C:\Documents and Settings\user\Local
    Settings\Application Data\Temporary Projects\WindowsApplication1\obj" /Q



  • IAmaNewDba

    I'll take a look at it; thanks again!
  • csharpener

    you can set the build output path to a location outside of your project location.

    Go to Solution Explorer-> My project -> Compile tab -> Change the "Build output path"



  • RedRider

    Use the Project Properties. To display it, double click on the My Project on the Solution Explorer.

    Open the Compile tab on the left, and set the Build Output path to anywhere you see fit.

    This setting works per-configuration setting, so you might/can set a different build output path when you Build to Debug or Build to Release.

    And one more thing, you can clean up the mess before backing up by selecting Build > Clean Solution. This removes all built files. Alternatively, you can safely remove the bin folder after working.



  • Auxiliary file locations in VB 2005