Last post Sep 25, 2007 11:26 PM by Benson Yu - MSFT
Sep 21, 2007 06:59 PM|Phillip J|LINK
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?
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.
Sep 22, 2007 08:37 AM|hkhaled|LINK
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.
Sep 23, 2007 02:00 PM|Phillip J|LINK
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...
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?
Sep 25, 2007 11:26 PM|Benson Yu - MSFT|LINK
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”.