Visual Studio Bug: This platform could not be created because a solution platform of the same name already exists.

Posted:
26 Apr 2009 - 16:41 UTC.

If you have a Visual Studio Solution with 2 or more C++ projects in it and you attempt to add an additional platform to the build configuration of a single project, for example x64. You will be able to add it to the first project through the IDE, however when you attempt to add it to the latter project(s) you will receive the error message:

This platform could not be created because a solution platform of the same name already exists.
[h]To prevent the issue.[/h]

Don't add a platform to a single project, add it to the entire solution by using the <New...> option on the Active solution platform dropdown in the Configuration Manager.

[h]To get around this issue.[/h]

If you do add the platform to a single project, or you add a new project at later date, you need to do the following:

[ol]

[*]Close Visual Studio[/*]

[*]Open your text editor of choice i.e. Notepad, Wordpad, etc. Anything except Visual Studio.[/*]

[*]Browse to the location of the solution on disk[/*]

[*]Find the latter projects .vcproject file and open it[/*]

[*]Inside the VisualStudioProject\Configurations node you will find a series of Configuration nodes. Copy (and paste underneath) one which has a name attribute beginning with Debug| and replace the text at the end with your desired platform (i.e. Change Debug|Win32 to Debug|x64).[/*]

[*]Repeat the above step for a Release configuration.[/*]

[*]Save the changes and exit notepad[/*]

[*]Job done, return to Visual Studio[/*]

[/ol]

Share

Comments

There are no comments.

Posting Comments is disabled.