I recently switched to a new pc with Windows 7 64 bit. And I have a web application which uses a 32-bit dll, so now I am explicitly compiling in 32-bit mode.
When the solution platform was 'Any CPU' the output directory was .\bin, now that it is 'x86' the output directory is .\bin\x86\Debug. These are the default directories my VS2008 sets when using these solution platforms.
When compiling in x86 mode I see that all dependencies of my web application are copied to .\bin and .\bin\x86\Debug, but the target dll of my web application is only in .\bin\x86\Debug. When using the web application VS seems to look for the dll in the .\bin directory, and not in the .\bin\x86\Debug directory so I get an error 'Cannot load type global'.
Why are the dependencies copied to two places and why does VS2008 not look in the output directory (.\bin\x86\Debug) for binaries?
I could of course easily change the output path of the x86 solution platform for the web application to .\bin again, but I just want to know if this is by design or a bug or anything else. The only relevant setting on the properties page of the web application is the output directory, there is no seperate setting for the bin directory AFAIK. But perhaps I am doing something wrong here.
View Complete Post