Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 863
my_overflowed_stack Avatar asked Dec 20 '12 15:12

my_overflowed_stack


2 Answers

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).

like image 125
Davin Tryon Avatar answered Sep 19 '22 10:09

Davin Tryon


Because that's where compiled output goes.

You seem to be showing folders that are not included in your project. You could just turn off that setting if you don't want to see it.

You could also move where compiled output is written:enter image description here

like image 34
Yuck Avatar answered Sep 19 '22 10:09

Yuck