narshe;10141 wrote:This issue with doing that is it will only build net45 and not all the other types. This would work temporarily while developing, but isn't ideal.
If I switch the project over to using the new core project types (I'm assuming that's what CPS projects are), would this solve the issue? If I did that would I be able to specify multiple targets in the unit test project and would NCrunch run tests for each version of the framework then? I see NCrunch builds each type in the core project nicely.
Yes, if your intention is to multi-target the tests so that each platform is tested individually, then you will need to switch the test project to CPS and multi-target the project to the platforms you wish to test for. NCrunch will handle this structure.
By setting your test project to .NET v4.5, you've basically instructed NCrunch (and all other tools) to only build your test project to .NET 4.5, and therefore it can only target the .NET 4.5 variant of your code under test.