I've been maintaining a Windows forms application written in C# for some time now used in our company, and every now and again when I'm putting a new release out, the release build of the installer that I generate packages up a debug version of the class library that is part of the project.
I've specified the release version of the primary output, which is fine, but the class library DLL picked up as a detected dependency quite often seems to pick the debug version.
Looking in my setup project, at the properties of the class library, the source is pointing at the version in the debug directory. I can't edit this value as it is greyed out.
If I select release in the toolbar, and refresh dependencies, the problem is corrected, but when I'm preparing a release I use the batch build option. why does batch building not deal with this correctly?