I enabled NCrunch for a solution with about 20 projects. I got load failures for some of the projects so I followed the recommendations on the
Project Build Platform And Configuration page and modified the PropertyGroup xml as recommended. The projects then built successfully.
However as soon as I saved my solution I noticed that my .sln file had changed/been corrupted.
This section of the .sln file
Quote:{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Any CPU.ActiveCfg = Debug|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Any CPU.Build.0 = Debug|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Mixed Platforms.ActiveCfg = Debug|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Mixed Platforms.Build.0 = Debug|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Win32.ActiveCfg = Debug|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Win32.Build.0 = Debug|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|x86.ActiveCfg = Debug|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|x86.Build.0 = Debug|x86
was changed to:
Quote:{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Any CPU.ActiveCfg = Debug (Server)|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Mixed Platforms.ActiveCfg = Debug (Server)|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Mixed Platforms.Build.0 = Debug (Server)|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Win32.ActiveCfg = Debug (Server)|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|Win32.Build.0 = Debug (Server)|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|x86.ActiveCfg = Debug (Server)|x86
{4767FA9B-1487-4023-A380-B070F8C6A465}.ASPNET Debug|x86.Build.0 = Debug (Server)|x86
Where
Debug Server is a custom configuration that I am using.
When I click on the project properties Debug is now missing from the Configuration dropdown too. It's also missing in the solution configuration tool.
One thing I've noticed is that the first PropertyGroup in my project file has:
Code:
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Changing AnyCPU to x86 seems to make the problem go away, but I don't understand why or if this is a valid change.
In my original Mickey Mouse solution that I used for initial testing of NCrunch having AnyCPU specified didn't cause any problems.
Could you explain what I am doing wrong?
Thanks