Visual Studio creates bin / folder in wrong location

In Visual Studio 2008, I have a solution with a number of projects. Each project has the same build output path ".. \ bin \ Debug \" for debugging, and ".. \ bin \ Release \" for release.

So, the directory structure looks like this:

solution\
    bin\
    project1\
    project2\
    project3\

      

Everything works fine, all assemblies go to the right place when I build the project, etc.

For example, when I first open a solution in Visual Studio, an empty buffer folder is created one level up from where it should be.

So I get:

bin\
solution\
    bin\
    project1\
    project2\
    project3\

      

This folder is only created the first time you open the solution. Never when I build.

I've looked at the .sln file and each .csproj and I can't figure out why this folder is being created.

So my questions are: a) Why is the bin folder being created? b) How do I stop Visual Studio from creating this bin folder?

+2


a source to share


2 answers


Update - September 30, 2010: Upgrading from Visual Studio 2008 to Visual Studio 2008 (Service Pack 1) completely resolved this issue.



This unusual behavior was due to the fact that I had the XML documentation file selected in the project's build properties. Canceling the "XML document file" stopped the creation of an empty bin folder. Still don't know why this was happening as the location of the XML documentation file was set to the same path as the build output path, but no matter what I did, as long as the XML documentation file was checked, I always would get an empty trash directory one level above the actual bin folder.

+3


a source


I noticed the following behavior:



a) if the path is ".. \ bin \", then the wrong folder is created at the wrong level b) if the path is "... \ bin \", then everything is fine (the trash folder), but if you touch the VS settings, automatically the path to ".. \ bin \" will change, and the garbage will appear again

+1


a source







All Articles