If I add a new C++ project to a solution, and the project has Win32 and x64 Debug and Release configurations, the project is added correctly to a pure C++ solution, with all the configurations/platforms selected to Build correctly.
If I add a C++ project to a dot net solution though - I have a problem:
For x64, the project is set to build in x64, good. But...
If the Active Solution Platform is x86 (since dot net projects don't have win32), I get a "mixed platform" mess, with the c++ projects set to x64 and not selected to build - so I get build errors (since the c++ projects are dependencies for the dot net).
Is there any way to add the x86 configuration to build, using EnvDTE ?
Which, if I was editing the sln file with Notepad, will look like this:
{6EF5593D-A432-4625-8BCE-3BD564C9FE7D}.Release|Win32.ActiveCfg = Release|x86
[And the reverse - adding the Win32 configuration for a dot net project]
I have looked at examples to read the configurations for a project - but that must be the wrong approach, because if the project does not support the other configuration, I cannot add it,,,
So I am at a loss at how to add it to a solution, help would be much appreciated.