Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / Visual Basic
Article

A Utility to Convert VS.NET 2003 Project Files

Rate me:
Please Sign up or sign in to vote.
4.91/5 (123 votes)
14 Mar 20042 min read 876.1K   23.1K   135   99
This utility converts projects and solutions from VS.NET 7.0 to VS.NET 7.1 and vice versa.

Image 1

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


Written By
Web Developer
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
This is a Organisation

1 members

Comments and Discussions

 
Generalnew version for VS 2005 Pin
Konrad Windszus15-Dec-05 6:46
Konrad Windszus15-Dec-05 6:46 
QuestionWhat files should be selected Pin
madraban21-Sep-05 23:39
madraban21-Sep-05 23:39 
AnswerRe: What files should be selected Pin
offo27-Oct-05 22:04
offo27-Oct-05 22:04 
GeneralExcellent Job Pin
pargunan2-Sep-05 19:36
pargunan2-Sep-05 19:36 
GeneralI Can't download it Pin
Anonymous31-Aug-05 21:21
Anonymous31-Aug-05 21:21 
General.vdproj support Pin
Alomgir Miah1-Jul-05 7:31
Alomgir Miah1-Jul-05 7:31 
GeneralWhen I run executable get this error: Pin
Angus Comber24-Jun-05 8:56
Angus Comber24-Jun-05 8:56 
GeneralSh*t! Pin
Anonymous20-Jun-05 2:39
Anonymous20-Jun-05 2:39 
Sh*t,why the software cannot be downloaded?
Generaldownload Pin
Wes Aday20-Jun-05 4:30
professionalWes Aday20-Jun-05 4:30 
QuestionVB 6.0 --&gt; VB.NET2002 ?? Pin
Yevets6-Apr-05 0:31
sussYevets6-Apr-05 0:31 
AnswerRe: VB 6.0 --&gt; VB.NET2002 ?? Pin
jfk9129-Jul-05 6:05
jfk9129-Jul-05 6:05 
GeneralRe: VB 6.0 --&gt; VB.NET2002 ?? Pin
TeoMan17-May-06 23:04
TeoMan17-May-06 23:04 
GeneralYou are a genious! Pin
vhof15-Feb-05 21:39
vhof15-Feb-05 21:39 
GeneralI get &quot;Project &quot;C:\FormsApp&quot; failed to open Pin
Member 157545227-Jan-05 14:18
Member 157545227-Jan-05 14:18 
GeneralWorked Great! Pin
brianjep14-Dec-04 6:09
brianjep14-Dec-04 6:09 
Generalconverted successfully but SLN version still sayin 7.10 Pin
Arch-Angel1-Dec-04 12:59
Arch-Angel1-Dec-04 12:59 
QuestionStdafx.h? Problem? Pin
Chlavista2-Sep-04 5:24
Chlavista2-Sep-04 5:24 
GeneralUtility works, but sln will not open. Pin
goblin465-Aug-04 9:30
goblin465-Aug-04 9:30 
GeneralRe: Utility works, but sln will not open. Pin
Toolmaker12-Aug-04 9:57
Toolmaker12-Aug-04 9:57 
GeneralVS.NET 2005 Pin
vquillet4-Aug-04 10:26
vquillet4-Aug-04 10:26 
GeneralRe: VS.NET 2005 Pin
Veener21-Oct-04 1:57
Veener21-Oct-04 1:57 
GeneralRe: VS.NET 2005 Pin
Anonymous7-Sep-05 14:35
Anonymous7-Sep-05 14:35 
GeneralRe: VS.NET 2005 Pin
timr20043-Nov-05 4:52
timr20043-Nov-05 4:52 
GeneralRe: VS.NET 2005 Pin
ziggyware30-Dec-05 12:57
ziggyware30-Dec-05 12:57 
GeneralRe: VS.NET 2005 Pin
kennster21-Feb-06 2:48
kennster21-Feb-06 2:48 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.