Web Platform and Tools Team
Microsoft Corporation
July 2006
Summary: Walks you through the process of converting an existing Visual Studio .NET 2003 Web project to a Web application project in Visual Studio 2005 (7 printed pages)
Migrating a Visual Studio .NET 2003 Web Project to a Web Application Project
Step 1: Install the Visual Studio 2005 Web Application Project Preview
Step 2: Back Up Your Visual Studio .NET 2003 Projects
Step 3: Open and Verify your Visual Studio .NET 2003 Web Project
Step 4: Migrate the Solution to Visual Studio 2005
Step 5: Verify in Visual Studio 2005
Step 6: Covert Code-Behind Classes to Partial Classes
Step 7: Examine and Resolve XHTML Compliance Issues
The Future of Web Application Projects
This.
This article assumes that you are working in C#. The steps for working with Visual Basic are very similar, but file names and some of the code will differ.
Be sure you have installed Web Application Projects in Visual Studio 2005 by following the steps in Installing Web Application.:
Figure.
After the solution and project files are upgraded to Visual Studio 2005 format, validate that your application builds without errors and runs as expected. At this point, the most common errors or warnings will be of these types:
To fix naming conflicts, you can either fully qualify existing names with a namespace to remove ambiguity, or rename the members so they do not conflict.
If you see a warning about using obsolete members, the warning message will usually. For more information on .designer.cs files, see Scenario 1: Creating a New Web Application Project..
Figure 2. Converting a single page to Web application project format
When the process has finished, check the Task List window to see ifles your changes.
From this point, when you add new pages into your Web project, they will by default use the partial-class template..
Figure 3. Configuring HTML validation
You can also.
Web application projects provide a compilation and build model very similar to the one used in Visual Studio .NET 2003. Depending on their requirements, some users will find the new Web site project option in Visual Studio 2005 more appropriate for their applications, while other users will prefer the Web application project option. Web application projects provide the best path for upgrading existing Visual Studio .NET 2003 applications to Visual Studio 2005, and are highly recommended for that scenario.
We want to emphasize these important points about the future of Visual Studio 2005 Web application projects: