Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com

I have Visual Studio 2005 environment and decided to try VS 2008. I've read some articles(e.g. here) about site-by-site installation and had an impression, that making a copy of solution is enough.

NOTE: If you are using TFS, before conversion of the existing solution, obtain and install  Team Explorer Client .
VS 2005 is using TFS Source Control, but VS 2008 shows no Source Control plug-in installed.
.

After installing of VS 2008  I've copied my existing solution as MySolution2008 and opened it in Visual Studio 2008. The upgrade wizard told me that upgrade will be done in place(no backup option in the wizard) Then it showed that it converted also project files.

Then I open original Solution2005.sln in VS 2005. However wizard suggested me to upgrade to the latest version< so I wasn't able to open existing solution in VS 2005.I've followed the recomendation to restore file association in VS from Tools->option->Environment->General , then click the  "Restore File Assoications" button on the dialogue.

It allowed me to open solution in 2005. However I've noticed that generated files (such as typed datasets and web references) were modified.The reason is that the projects were updated with extra attributes

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">

and extra elements <OldToolsVersion>2.0</OldToolsVersion>.

Furthermore, for a few projects it was recommended  to open in Browse mode, because they have unsafe Includes. It also changed the path

<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" Condition="" />

After fixing these changes I was able to restore my VS 2005 solution back to normal.
The similar posts , that helped me, are Moving Projects/Solutions between Orcas and Visual Studio 2005 ,
Rick Strahl's 'Migrating Web Application Projects between VS 2005 and VS 2008
Multi-Targeting VS2005 and VS2008 Web Application Projects, a Gotcha!  -shows how to add conditional entries Condition="'$(Solutions.VSVersion)' == '8.0'"/>

 

References to AJAX DLLs

After a few weeks after VS 2008 installation after reboot I've noticed that my web.config got extra
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

It caused WMIPRVSE.EXE to take 100% CPU , because of endless errors:

System.Web.HttpCompileException: error CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'

I had to delete the extra entries.

Posted on Monday, January 28, 2008 11:59 AM .Net Framework , Visual Studio/TFS/git , AJAX | Back to top


Comments on this post: Problems after Installing VS 2008 side-by-side with VS 2005

# Issues converting Visual Studio 2005 Projects to Visual Studio 2008.
Requesting Gravatar...
Previously I wrote about Problems after Installing VS 2008 side-by-side with VS 2005 and that Visual studio conversion wizard opens each time for converted 2008 solution...
Left by Michael Freidgeim on Oct 22, 2008 12:29 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net