MSBuild doesn't pick Configuration correctly

I set my configuration to DEBUG | ANYCPU.  I still get release mode builds.

 

Error when attaching debugger to process:

"To debug this module change the project build configuration to debug mode."

I'm running finalbuilder using MSBUILD. The output says:

Running C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe with parameters : /t:Build /nr:false /logger:FinalBuilderLogger,"C:\Program Files (x86)\
FinalBuilder 7\FinalBuilder.MSBuild.Logging.v4.0.dll"
/noconlog /p:Configuration="Debug";Platform="AnyCPU"
/v:normal /m /p:solutionDir="C:\TFS10\Ecc\TestBranch\" "ProjectName.csproj"

Unless I missed something (wouldn't be the first time), these parameters suggest a Debug build with no optimizations. So why the error?

Note: I have experienced a strange issue when doing my builds in finalbuilder where I have to set an output path in the first property group in msbuild:

Debug 
AnyCPU 
bin\Debug\/* this has to be here */

In this group and are not set. So they are defaults.

If it's set in the next property group, 'Debug|AnyCPU' property group alone I get a build error regarding output path not found:

 bin\Debug\

This suggests that the build condition is the default (blank) rather than Debug for some reason.

Hi Brian

My apologies for the delay in replying. I’m not sure this is a FinalBuilder issue. If you build the project using MSBuild from the command line do you see the same behavior? I would check the project configuration in Visual Studio and check that the Debug configuration is actually a debug config.