开发者

Visual Studio creating bin/ folder in wrong location

开发者 https://www.devze.com 2022-12-30 21:21 出处:网络
In Visual Studio 2008, I have a solution with a number of projects. Each project has the same build output path of \"..\\开发者_高级运维bin\\Debug\\\" for debug, and \"..\\bin\\Release\\\" for release

In Visual Studio 2008, I have a solution with a number of projects. Each project has the same build output path of "..\开发者_高级运维bin\Debug\" for debug, and "..\bin\Release\" for release.

So the directory structure looks like this:

solution\
    bin\
    project1\
    project2\
    project3\

This all works fine, all the assemblies go to the correct location when I build the project, etc.

Howevever, when I first open the solution in Visual Studio, an empty bin folder is created one level up from where it should.

So I am getting:

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

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

I have looked through the .sln and every .csproj file, and I cannot work out why this folder is being created.

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


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

This unusual behavior was occuring because I had 'XML documentation file' selected in the project build properties. Unchecking 'XML document file' stopped the empty bin folder from being created. Still no idea why this was happening, because the XML documentation file location was set to the same path as the assembly output path, but no matter what I did, as long as 'XML documentation file' was checked, I would always end up with an empty bin directory one level up from the actual bin folder.


I noticed following behavior:

a) if path is '..\bin\' then wrong folder on wrong level gets created b) if path is '...\bin\' then all is fine (no garbage folder), but if you will touch setting VS automatically will change path to '..\bin\' and garbage appears again

0

精彩评论

暂无评论...
验证码 换一张
取 消