I have a multi project solution in Visual Studio 2008. I just added a new Configuration called Release-VersionIncrement to the solution, specifying \"use release\" configura
Like "Richard Dingwall" hinted, the problem is related to VS using the display version of "Any CPU" instead of the MSBuild version which actually reads "AnyCPU"
Go into Build/New Build Definition or Edit Build Definition -> Process -> Configurations to build, open the configuration selection dialog and in "Platform" instead of selecting "Any CPU", manually add "AnyCPU"
I had the same problem. I fixed it by clean and rebuilt the projects.
If you decide to set OutputPath as a param, and your path is like: bin\Release\\ then remember to add \ at the end like that: /p:OutputPath=bin\Release\\\\ it took me a while to realize it was the case
If anyone is getting this one in his NCrunch logs, check if the PropertyGroup defining the values 'Debug'/'Release' and 'AnyCPU'/'x86' located before the property groups using those values in their condition.
<PropertyGroup>
<!-- this one first -->
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<XXX>...</XXX>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<XXX>...</XXX>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<XXX>...</XXX>
</PropertyGroup>
Worked for me.
In my case the OutputPath was set property in the project files. But unloading, reloading and then rebuilding fixed it.
I had the same error, so I looked on project settings and there in "Build" section is "Build output path" option. And value was empty. So I filled in "bin\" value a error disappeared. It solved my problem.