How to re-create a lost Solution file?

Last post 09-25-2007 11:26 PM by Benson Yu - MSFT. 3 replies.

Sort Posts:

  • How to re-create a lost Solution file?

    09-21-2007, 6:59 PM
    • Loading...
    • Phillip J
    • Joined on 08-11-2006, 5:26 PM
    • Ventura, CA.
    • Posts 104

    Hi,

    I have been handed a project written using Visual Studio 2003 in ASP.NET 1.1.  It does a solution file any longer but does have all the rest of the files and a VBProj file.

    My Question is which will be easier and quicker to do...
    Create a new solution in VS 2003?
    OR
    Create a new solution in VS 2005?

    Then import the project and the rest of the files?

    When I open the files for viewing in an editor (notepad) they are definitely the 2003 version but at this time there is no requirement to update or change anything in the application, just to get the source code functional and review it.

    Thanks
    Phillip J.
  • Re: How to re-create a lost Solution file?

    09-22-2007, 8:37 AM
    • Loading...
    • hkhaled
    • Joined on 08-06-2007, 11:52 AM
    • Posts 461

    create a new solution in vs 2005, and right click on your website and click add existing items.. select all your files and then click add.

    alternatively you can copy and paste the files to the solution explorer.

    thanks

     

    sharp guy
  • Re: How to re-create a lost Solution file?

    09-23-2007, 2:00 PM
    • Loading...
    • Phillip J
    • Joined on 08-11-2006, 5:26 PM
    • Ventura, CA.
    • Posts 104

    Thanks,  I tried that and got over 200 errors... mostly object not declared errors.  There will of course take a long time to figure out and correct.  And since this project will only have minor updates may not be feasable (time).

    Thanks though it did work...

    --------------------------------------------------------------------------------------

    VS2003 Version...

    Is there a resolution to the other path... (No solution file for the web site only the VBProj and it related files)

    I have tried...

    (1) Ceating a new Solution file then adding the original VBProject file and files/pages to the solution?
    I get an error saying that it has to be added from the WEB?

    (1a) I tried going to IIS and creating a WEB site and pointed it to the original code folders (not under the initpub/wwroot/.. path) but that failed too. 

    I think I am missing a step in there somewhere.

    Anyone got any ideas on what steps I should be taking? OR what I am missing?

    Thanks
    Phillip J.
  • Re: How to re-create a lost Solution file?

    09-25-2007, 11:26 PM
    Answer

     

    Hi Phillip,

    Based on my understanding, you have a web project without a solution file. You want to create a solution file for this project and failed. If I have misunderstood your concern, please let me know.

    To add a new solution file for the existing VS.NET 2003 web project, please refer to the following steps:

        1. Copy the project folder and all its contents to web site root directory (by default is C:\Inetpub\wwwroot)
        2. Create a virtual directory for it by the following steps:
             a). Open IIS Admin tool. (Control Panel | Administrative Tools | Internet Information Services).
             b). Expand the Default Web Site node and find the project.
             c). Right click the project folder node and select “Properties”.
             d). Click the “Create” button in the “Directory” tab.

        3. Open Visual Studio 2003.
        4. Create a blank solution from menu: File | New | Blank Solution…
        5. Right click the solution in “Solution Explorer” and select Add | Existing Project From Web…
        6. Input “http://localhost” and click “OK” button.
        7. Select the project file in the “Add Existing Project”.

     

    Sincerely,
    Benson Yu
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter