Click here to Skip to main content
Click here to Skip to main content

A Utility to Convert VS.NET 2003 Project Files

By , 14 Mar 2004
 

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
Web Developer
Canada Canada
No Biography provided
Group type: Organisation

1 members


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralMy vote of 5memberCarlos_zxl21-Aug-12 20:47 
GeneralVS 2002&lt;-&gt;2003&lt;-&gt;2005&lt;-&gt;2008 convertermemberTorontoSkidder3-Mar-09 14:23 
GeneralRe: VS 2002<->2003<->2005<->2008 convertermemberKieran8219-Feb-10 3:33 
GeneralTo convert visual studio 2003 application to visual studio 2005 applicationmembergnanaraj.t7-Jul-08 4:37 
General2005 to 2003member..HuNTeR..30-Jun-08 1:42 
General[Message Removed]membernompel1-Oct-08 7:34 
Generalconversion of websitesmemberdevinaren18-Apr-08 21:33 
QuestionIs there a way to convert Visual Studio 2005 project to 2003 or 2002?memberJan Palmer2-Apr-07 21:48 
GeneralAbout convert vs7.1 to vs7.0memberTearsofwind9-Jan-07 15:12 
GeneralRe: About convert vs7.1 to vs7.0memberJan Palmer2-Apr-07 21:39 
GeneralI want to a convert vs.net 2003 to vs.net 2005? [modified]memberlover_xia24-Nov-06 18:52 
GeneralMaking VS2005 build code backward compatibile to VS6.0 codememberdeepakbm7917-Nov-06 22:31 
QuestionWhat are the files to be selectedmemberb.prithviraj11-Oct-06 20:20 
GeneralVB 2005 to VB2003membernatasha_hy21-Sep-06 20:57 
GeneralVS2005 -> VS6.0membernomeansyes9-Aug-06 11:57 
QuestionRe: VS2005 -> VS6.0mvpDavidCrow9-May-07 2:43 
JokeIt is Great Utilitymembervinayb1030-May-06 4:39 
GeneralVs2005 to 2003memberBoniolopez2-Mar-06 23:58 
GeneralRe: Vs2005 to 2003memberazsd10-May-06 17:42 
GeneralVS 2005 opening of 2003 project breaks solutionmemberMowie66624-Jan-06 6:10 
General2005-&gt;2003 converter plz!memberziggy12330-Dec-05 12:58 
GeneralRe: 2005-&gt;2003 converter plz!memberc4tes29-May-06 10:35 
Generalnew version for VS 2005memberKonrad Windszus15-Dec-05 6:46 
QuestionWhat files should be selectedmemberace33321-Sep-05 23:39 
AnswerRe: What files should be selectedmemberoffo27-Oct-05 22:04 
GeneralExcellent Jobmemberpargunan2-Sep-05 19:36 
GeneralI Can't download itsussAnonymous31-Aug-05 21:21 
General.vdproj supportmemberAlomgir Miah1-Jul-05 7:31 
GeneralWhen I run executable get this error:memberAngus Comber24-Jun-05 8:56 
Generalsh*t!sussAnonymous20-Jun-05 2:39 
GeneraldownloadmemberAnon E. Mouse20-Jun-05 4:30 
QuestionVB 6.0 --&gt; VB.NET2002 ??sussYevets6-Apr-05 0:31 
AnswerRe: VB 6.0 --&gt; VB.NET2002 ??memberjfk9129-Jul-05 6:05 
GeneralRe: VB 6.0 --&gt; VB.NET2002 ??memberTeoMan17-May-06 23:04 
GeneralYou are a genious!membervhof15-Feb-05 21:39 
GeneralI get &quot;Project &quot;C:\FormsApp&quot; failed to openmemberUserTpm27-Jan-05 14:18 
GeneralWorked Great!memberbrianjep14-Dec-04 6:09 
Generalconverted successfully but SLN version still sayin 7.10memberArch-Angel1-Dec-04 12:59 
QuestionStdafx.h? Problem?sussChlavista2-Sep-04 5:24 
GeneralUtility works, but sln will not open.membergoblin465-Aug-04 9:30 
GeneralRe: Utility works, but sln will not open.memberToolmaker12-Aug-04 9:57 
GeneralVS.NET 2005membervquillet4-Aug-04 10:26 
GeneralRe: VS.NET 2005memberVeener21-Oct-04 1:57 
GeneralRe: VS.NET 2005sussAnonymous7-Sep-05 14:35 
GeneralRe: VS.NET 2005membertimr20043-Nov-05 4:52 
GeneralRe: VS.NET 2005memberziggy12330-Dec-05 12:57 
GeneralRe: VS.NET 2005memberkennster21-Feb-06 2:48 
GeneralRe: VS.NET 2005memberVVHH20028-May-06 7:34 
GeneralRe: VS.NET 2005memberTorontoSkidder3-Mar-09 14:16 
GeneralRe: VS.NET 2005memberscatha26-Mar-06 23:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130617.1 | Last Updated 15 Mar 2004
Article Copyright 2003 by dacris
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid