SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

a project with that name is already opened in the solution

Last post 09-03-2008 2:52 PM by Dooby. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 06-02-2008 6:22 PM

    • tmaler
    • Not Ranked
    • Joined on 06-02-2008
    • Posts 1

    a project with that name is already opened in the solution

    Quesiton we converted a project from c# to vb now when i try to open the project back up in VS 05 i get "a project with that name is already opened in the solution".  Can you tell me what i need to do open the project in VS 05.  Thanks for your help.

  • 06-25-2008 8:06 PM In reply to

    • edc73
    • Not Ranked
    • Joined on 06-25-2008
    • Posts 2

    Re: a project with that name is already opened in the solution

     Same issue here, going vb to c#.  Would appreciate any insight.  Thanks.

  • 06-26-2008 7:53 PM In reply to

    Re: a project with that name is already opened in the solution

    The converted project has the same name as the original one, you need to remove one of them from the solution (or rename one).
    Daniel Grunwald
  • 07-13-2008 5:01 AM In reply to

    • edc73
    • Not Ranked
    • Joined on 06-25-2008
    • Posts 2

    Re: a project with that name is already opened in the solution

     Did that.  Even tried renaming the orignal project and the converted project.  Still no dice.  Haven't played with it since posting my last message, but gonna see how much of the converted project file contents I can just paste into a new empty project.

  • 09-02-2008 6:32 PM In reply to

    • Dooby
    • Not Ranked
    • Joined on 09-02-2008
    • Posts 3

    Re: a project with that name is already opened in the solution

    Has anyone resolved this issue?

    I have converted a VB project to C# with SharpDevelop 3.0.0 Build 3437.  When I try to load the newly created C# .csproj file in VS2005 it gives the error.  If I load it in SharpDevelop it comes up without problem.

    The version I converted was a copy of the original, placed on a different local drive from the original.  It reported issues with trying to convert 'Option Strict Off' and 'Option Explicit On' (so they were removed) and it couldn't find 'code-completion information' for 2 DLLs which I have now resolved through SharpDevelop by adding a reference path.

    Any help gratefully received

  • 09-03-2008 1:32 PM In reply to

    • Dooby
    • Not Ranked
    • Joined on 09-02-2008
    • Posts 3

    Re: a project with that name is already opened in the solution

    Some further updates for anyone still struggling, like me.

    Since the solution file created by version 3.0.0 seemed to generate a VS2008 file, and I was trying to open using VS2005, I decided to downgrade my version of SharpDevelop to 2.2.  Still got the same error, but the solution file created by SharpDevelop can now open & shows the project as 'unavailable'.

    It would appear the conversion has only part completed, with certain parts not possible to convert.  All files have been renamed to .cs, some code conversion has taken place, project file renamed to .csproj but the page directives on the aspx pages still indicate VB as the language and the code behind filenames as .vb

    The slightly more interesting factor was when I renamed the .csproj file back to a .vbproj file - which suddenly allows it to be opened successfully in VS2005.  Despite this not all is well as the code behind files now seem disconnected from the aspx pages they relate to, so choosing to open the code behind while an aspx is selected simply results in the aspx being opened.

    I have now tried creating a new C# project and bringing the converted files in.  This seems to be working more successfully although there are a great many errors where the conversion process hasn't added references/using statements (which may be intentional).  It came as a surprise to me that with the page directives still indicating C# and .cs endings they still link to the correct code behind files in the newly created project.

  • 09-03-2008 1:52 PM In reply to

    Re: a project with that name is already opened in the solution

    The converter does not support ASPX pages, those are just copied without conversion.

    Adding using statements: only the 3.0 converter can do this.

    I'll check if the converter needs to change some language GUIDs so that VS can open the projects.

    Daniel Grunwald
  • 09-03-2008 2:22 PM In reply to

    Re: a project with that name is already opened in the solution

    The converter in SharpDevelop 3.0 Beta 2 works fine for me: I have created a VB Windows Forms project in VS, converted it using SD 3.0, and can open it without a problem in VS08. VS05 can also open it after manually converting back the .csproj and .sln files.

    To convert a project from VS08 to VS05: remove the 'ToolsVersion="3.5"' attribute from the root node in the .csproj file and set the version number in the solution from 10.00 to 9.00 and change VS 2008 to VS 2005 in the line below.

    The converter in SharpDevelop 2.0 had some problems with the duplicate name, but that is fixed in 3.0.

    Maybe there are problems specific to ASP.NET projects: those are not supported by SharpDevelop.

    Daniel Grunwald
  • 09-03-2008 2:52 PM In reply to

    • Dooby
    • Not Ranked
    • Joined on 09-02-2008
    • Posts 3

    Re: a project with that name is already opened in the solution

    Thanks for your replies Daniel, and also for the useful information on converting from VS08 to VS05.

    I hadn't realised ASP.Net projects weren't supported.

Page 1 of 1 (9 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.