5,696,038 members and growing! (13,989 online)
Email Password   helpLost your password?
General Programming » Macros and Add-ins » Tools     Intermediate

A Utility to Convert VS.NET 2003 Project Files

By dacris

This utility converts projects and solutions from VS.NET 7.0 to VS.NET 7.1 and vice versa.
C#, VB, VC7, C++Windows, .NET, .NET 1.0, .NET 1.1, NT4, Win2K, WinXPVS.NET2003, Visual Studio, Dev

Posted: 2 Jan 2003
Updated: 14 Mar 2004
Views: 571,060
Bookmarked: 115 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
120 votes for this Article.
Popularity: 9.91 Rating: 4.77 out of 5
3 votes, 2.5%
1
0 votes, 0.0%
2
3 votes, 2.5%
3
9 votes, 7.5%
4
105 votes, 87.5%
5

Introduction

I decided to create a utility that converts projects from the new Visual Studio .NET 2003 (codename "Everett") to Visual Studio .NET 2002. This is because in my experience I was working with both and found it hard to manually convert the projects and it often introduced problems, so I made an automated tool to do this job for me. So, all who are having the same difficulty, this tool is for you.

I've included full source code so you can see how I've done it and also so you can customize the tool to fit your own needs. As of March 12, 2004, I have updated the original VSConvert with some minor changes. Version 2.0 detects read-only files and also warns the user about losing .NET references when converting Managed C++ projects.

How I did it

So, you may ask, "How did you know how to convert the project files?" Here is a step-by-step description of the changes that happen when you convert a project from VS 7.1 to VS 7.0.

  1. In SLN files, the 8.0 must be replaced with 7.0.
  2. In vcproj files (and only vcproj), the 7.10 part must be replaced by 7.0. Note: The <References> portion of MC++ projects will be incompatible with VS.NET 2002 since it uses #using statements from 'stdafx.h'.
  3. In VB.NET or C# project files, 7.10.3077 is replaced with 7.0.9466.
  4. Also in VB.NET and C# projects, the schema version 2.0 should be replaced with 1.0.
  5. In RESX files, the types declared are 1.0.5000 and must be replaced with 1.0.3300.
  6. Again, in RESX files (binary streams), the base-64 encoded part that describes the version of the stream must also change from LjAuNTAw to LjAuMzMw (basically base-64-encoded versions of 1.0.5000 and 1.0.3300 respectively)

To convert from VS.NET 2002 to VS.NET 2003, just apply this process backwards.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

dacris



Occupation: Web Developer
Location: Canada Canada

Other popular Macros and Add-ins articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 95 (Total in Forum: 95) (Refresh)FirstPrevNext
GeneralTo convert visual studio 2003 application to visual studio 2005 applicationmembergnanaraj.t5:37 7 Jul '08  
General2005 to 2003member..HuNTeR..2:42 30 Jun '08  
General[Message Removed]membernompel8:34 1 Oct '08  
Generalconversion of websitesmemberdevinaren22:33 18 Apr '08  
GeneralIs there a way to convert Visual Studio 2005 project to 2003 or 2002?memberJan Palmer22:48 2 Apr '07  
GeneralAbout convert vs7.1 to vs7.0memberTearsofwind16:12 9 Jan '07  
GeneralRe: About convert vs7.1 to vs7.0memberJan Palmer22:39 2 Apr '07  
GeneralI want to a convert vs.net 2003 to vs.net 2005? [modified]memberlover_xia19:52 24 Nov '06  
GeneralMaking VS2005 build code backward compatibile to VS6.0 codememberdeepakbm7923:31 17 Nov '06  
GeneralWhat are the files to be selectedmemberb.prithviraj21:20 11 Oct '06  
GeneralVB 2005 to VB2003membernatasha_hy21:57 21 Sep '06  
GeneralVS2005 -> VS6.0membernomeansyes12:57 9 Aug '06  
QuestionRe: VS2005 -> VS6.0mvpDavidCrow3:43 9 May '07  
JokeIt is Great Utilitymembervinayb105:39 30 May '06  
GeneralVs2005 to 2003memberBoniolopez0:58 3 Mar '06  
GeneralRe: Vs2005 to 2003memberazsd18:42 10 May '06  
GeneralVS 2005 opening of 2003 project breaks solutionmemberMowie6667:10 24 Jan '06  
General2005->2003 converter plz!memberziggy12313:58 30 Dec '05  
GeneralRe: 2005->2003 converter plz!memberc4tes11:35 29 May '06  
Generalnew version for VS 2005memberKonrad Windszus7:46 15 Dec '05  
GeneralWhat files should be selectedmemberace3330:39 22 Sep '05  
GeneralRe: What files should be selectedmemberoffo23:04 27 Oct '05  
GeneralExcellent Jobmemberpargunan20:36 2 Sep '05  
GeneralI Can't download itsussAnonymous22:21 31 Aug '05  
General.vdproj supportmemberAlomgir Miah8:31 1 Jul '05  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 14 Mar 2004
Editor: Nishant Sivakumar
Copyright 2003 by dacris
Everything else Copyright © CodeProject, 1999-2008
Web15 | Advertise on the Code Project