↑ Grab this Headline Animator

Wednesday, April 22, 2009

Migrating from VS2005,.NET Framework 2.0 to VS2008 and .NET Framework 3.5

When we open our solution developed in Visual Studio 2005 and .Net 2.0 it will automatically converts the solution and all projects under it, to be compatible with Visual Studio 2008 and to use new compiler. A wizard will be displayed during this process.

Then we can target each project under solution to .NET Framework 3.5/3.0/2.0 by changing the Target Framework property for a project.

Once converted to Visual Studio 2008, we cannot open it in previous versions.

Based on conversion report we may have to change few classes and used namespaces.

As .Net Framework 3.5 is built on 2.0 we cannot remove .NET 2.0 Framework in the web server.
No need to change anything in IIS while deploying.

However even if our project is developed in VS2008 by targeting to .NET Framework 2.0 while deploying in the server we need to install .NET Framework 3.5 as it needs new compiler.

Also Following should be taken care while converting.

• If we are doing this conversion in Vista we need to open VS2008 as an Administrator.
• If an application includes controls or extenders from the ASP.NET AJAX Control Toolkit, while upgrading to the latest version of the .NET Framework. we must upgrade to a new version of the toolkit in order to run with the .NET Framework 3.5.
• If existing environment includes a source-control system, all necessary files will be automatically checked out by the conversion wizard. The conversion will fail if a file cannot be exclusively checked out.
• A project must be closed and reopened after its target .NET version has been changed.

I have tried converting few sample projects and I have not faced any issues.

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.


Latest Articles