Search code examples
c#visual-studio-2010mstestcoded-ui-tests

Visual Studio adds bin file to project


Environment:VS 2010. TFS.

For one of my projects, whenever I compile, VS adds a bin folder to my project. I can delete it, but when I compile, it is re-added. This is a behavior I have not seen before and does not exist in other projects in the solution. Please see picture below for more details.

Bin file is added to the ASI project.


Solution

  • That bin file has not been added to your project. It is created with you build on the file system. That is why you see it as a transparent file. If you don't want to see files on the file system, you should toggle this visibility.

    You can do this with the third icon under Solution Explorer (in the image you posted).

    Update for Visual Studio 2019

    Show All Files is now the 9th button displayed in Solution Explorer (it moves about as new versions of the IDE are released).