Error Message

A project with that name is already opened in the solution.

Cannot create solution with message: A project with that name is already opened in the solution.

Summary

When using SharpSetup with AnkhSVN and Visual Studio 2010 you may get a message saying that "A project with that name is already opened in the solution." After this message pops up the SharpSetup solution creation wizard will fail.

Affected configurations

Any supported Windows version, WiX v3.5, Visual Studio 2010, AnkhSVN 2.x, SharpSetup (1.0 or 1.2).

Symptoms

When creating SharpSetup solution you can get an error dialog box saying that "A project with that name is already opened in the solution." The solution log will contain the following messages:

Unloaded c:\users\administrator\documents\visual studio 2010\Projects\Installer1\Gui\Gui.csproj. Loading c:\users\administrator\documents\visual studio 2010\Projects\Installer1\Gui\Gui.csproj ... c:\users\administrator\documents\visual studio 2010\Projects\Installer1\Gui\Gui.csproj : error : A project with that name is already opened in the solution.

More information

This problem is caused by a bug in AnkhSVN (issue 625) that relates to path casing.

Workaround 1

Disable AnkhSVN SCC Provider in Visual Studio (Tools -> Options... -> Source Control -> Plug-in Selection) or uninstall AnkhSVN.

Workaround 2

In New Project dialog in Location text box use path in subversion normalized form. The normalized form is drive letter in upper case and all directories cased exactly as on disk. That is for example "C:\Users\Administrator\Documents\Visual Studio 2010\Projects" instead of "c:\users\administrator\documents\visual studio 2010\projects".

See Also