Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Installation / Documentation > Converting from VB express 08 to visual studio 05


Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2008, 06:14 AM
joki75 joki75 is offline
Newcomer
 
Join Date: Mar 2008
Posts: 1
Default Converting from VB express 08 to visual studio 05

Hi

I started my work at uni in visual studio 05 and have over the easter break been working on my code in express 08 vb.net. I need to convert the code back so that it can be read at uni but i cannot seem to be able to find a way to do it.

There is no code which wont run in 05, but the solution file will not even open in it. Could someone help as i have spent many hours on this project and only have a week befor eit needs to be handed in!

Thanks a lot
Reply With Quote
  #2  
Old 03-24-2008, 08:37 AM
AtmaWeapon's Avatar
AtmaWeapon AtmaWeapon is online now
Ultimate Contributor

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 7,598
Default

Hand conversion could have been done easily by comparing two blank solution/project files, but it sounds like the machines are geographically separated so I'll assume that it's too difficult to do so. Here's what I do to hand-convert back and forth, and it generally works.

.sln file:
Open it up in a text editor. You'll need to change the first two lines. Change the line that says "Format Version 10.00" at the end to say "Format Version 9.00" at the end. The second line is a comment that says "Visual Studio 2008"; I always change it to "Visual Studio 2005" for good measure but it might not be needed.

Project File
This one's a little more difficult, but the XML makes it easier to describe what needs to be changed.
  • The Project element has a ToolsVersion attribute. Delete it.
  • The ProductVersion node might need its value changed from 9.something to 8.something; I've never tested if it matters and you'll have to consult a new project file to figure out what the correct value for VS 2005 is, or you can do like me and put 8.0.0.0 and pray it works.
  • Any TargetFrameworkVersion elements need to be removed.
  • The line <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" /> should say "MSBuildBinPath", not "MSBuildToolsPath".

After that's all done, make sure you have no references or Imports statements that reference 3.0 or 3.5 assemblies; if you don't the compiler will be glad to let you know that it has no idea what you mean by System.Linq and the like.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:

Powered by liquidweb