views:

75

answers:

1

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?

+2  A: 

To make long story short: it is a bug, don't use batch builds.

Long story anyway, from msdn (scroll down a bit). Favourite quotes:

  1. "MS seems to have mixed feelings about batch builds."
  2. "However I don't think it'll get fixed anytime soon."

Cheers

Hertzel Guinness