I have a solution with seven projects. All of the projects work fine with NCrunch except one (which just happens to be set to output as an console application). NCrunch reports:
Quote:
Errors occurred while trying to load the project file:
The OutputPath property is not set for project 'nCrunchTemp_8032772c-1bfd-4d6f-b642-55a0ec21d60a'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='x86'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.
NCrunch: This error is commonly caused by projects that are relying on the selected build configuration provided by Visual Studio in order to set the $(Platform) and $(Configuration) MSBuild properties during a build. Unless configured otherwise, NCrunch will normally use the default $(Configuration) and $(Platform) properties that are specified in a .proj file - thus in order for your project to build with NCrunch it must be possible to build the project using command line MSBuild without needing to manually inject build properties. You will most likely need to edit your .proj file to align its default $(Configuration) and $(Platform) properties with the property groups provided in the file.
This turned out to be due to the fact that the project only had the x64 build platform defined. After adding the x86 build platform, NCrunch works fine with the project. I am however not even building the x86 version at all, just that it needs to be present for NCrunch to work.
Does NCrunch build the x86 version of projects by default, and if so, why do my other projects work fine when they also don't have that build platform defined?
(NCrunch v1.39.0.15b)