andrecarlucci
andrecarlucci

Reputation: 6296

VS2010 - A project with that name is already opened in the solution

The problem started after installing RiaServices Toolkit Dec 2010 (I guess).

If I unload the project and reload it again, I get this message, even on an empty project (any type - no changes made to the project file).

Unloaded ~\ConsoleTestApp.Cmd\ConsoleTestApp.Cmd.csproj
Loading ~\ConsoleTestApp.Cmd\ConsoleTestApp.Cmd.csproj
error : A project with that name is already opened in the solution.

Upvotes: 8

Views: 14449

Answers (7)

infografnet
infografnet

Reputation: 4005

I had this error, when I modified a Visual Studio Project File (*.csproj) from outside Visual Studio (so in another program I have just called Microsoft.Build.Evaluation.Project.Load(MyProject.csproj) while this project was currently opened in VS. I've found the solution, and I described it here, on codeyourself blog.

Upvotes: 0

rowdie
rowdie

Reputation: 1

I had this issue, and it was resolved when I restarted VS in administrator mode.

Upvotes: -1

Blush
Blush

Reputation: 123

I get this error occurs when using in field "Look in" specific meaning. After i set the option "Entire Solution" problem disappeared.

PS: sorry for bad english

Upvotes: 0

Perty
Perty

Reputation: 921

This worked for me (Workaround 2):

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".

From:

Upvotes: 8

Jiraffe Man
Jiraffe Man

Reputation: 11

I'm also using AnkhSVN in VS2010.

My solution was to move the project I was trying to load into the path that was under SVN management. Originally I was trying to load the project from outside of the "trunk" path.

Example: my other loaded projects were located in the folder path like this:

\\srv\documents\vs projects\svntrunk\project*

But the project I was trying to load was in a different path, (outside of the SVN trunk)

\\srv\documents\some other folder\projectToLoad\

I copied the folder \projectToLoad\ and put it under

\\srv\documents\vs projects\svntrunk\*

After which, I was able to load the project.

Upvotes: 1

Akku
Akku

Reputation: 4454

Got the same problem when trying to add an existing project.

I went to the Ankh SVN homepage here and downloaded the newest daily build here: http://ankhsvn.open.collab.net/daily After installing the freshest version, the problem was still there.

Therefore I paid better attention. The preselected folder when trying to add an existing project pointed to the network share of my own computer. Selecting the same proejct on a local harddisk fixed the problem for me.

Upvotes: 2

Nick Josevski
Nick Josevski

Reputation: 4216

I had a similar problem in VS2010, but not related to the RiaService toolkit.

My solution was to delete the .suo file in the solution directory.

Upvotes: 29

Related Questions