Open Visual studio 2010 project in 2008

XecutioneR

Active Member
Joined
Nov 4, 2008
Messages
73
Reaction score
0
Hi all

Ive started work on a project using visual studio 2010 express (VB) and .net 4 and I need open the project with 2008 and .net 3.5. I currently cannot open the file and get a message stating that it was created using a newer version.

Is there any way to convert these files without having to redo all my work?

Thanks
XecutioneR
 
Depending on how much project-specific configuration you've done in VS2010, you can probably do this fairly easily manually by creating a new project and importing the source code and then removing .NET 4 specific assembly references. Or use the previous post :)
 
Hi,

If you've used any new .net 4 components in your project, they wont be accessible to you in 2008/.net 3.5.

If you haven't you should be ok. create a new solution and any projects in VS2008 and just add all your code manually to this new solution. (right click, Add existing item). If you're using TFS you will need to recreate all your bindings to the new project. or better yet, just create a new location in TFS for your VS2008 solution. that way you'll have both copies of code should anything go haywire.

Hope this helps.
J
 
Depending on how much project-specific configuration you've done in VS2010, you can probably do this fairly easily manually by creating a new project and importing the source code and then removing .NET 4 specific assembly references. Or use the previous post :)

Yip. Just create a new VS 2008 solution. Then for each of your VS 2010 projects, add a new VS 2008 project. Point it to the same directory (or maybe copy to a new directory first, to test how it works). Then add all the files of each VS 2010 project, to the corresponding VS 2008 project. then hit the build button, and start resolving all errors and broken assembly references.

Eventually you will get to a point where you will be able to see which VS 2010/.Net 4 assemblies and functions you are using, which need to be removed / refactored.


OR


In VS 2010, convert your project back to .Net 3.5. Do a build. Resolve all broken references and other issues. Then do the same thing as above to get it into a VS 2008 solution with VS 2008 project files.
 
Thanks for the replies. Ive got everything working and saved a lot of time
 
Happy days are here again :)

Might I ask why you switched from 2010 back to 2008? I've got both installed but haven't really used 2010.
 
Happy days are here again :)

Might I ask why you switched from 2010 back to 2008? I've got both installed but haven't really used 2010.

I'd also like to know. The only reason I use 2008 now is when I'm sharing code with my colleagues that haven't moved to 2010 as yet.
 
Happy days are here again :)

Might I ask why you switched from 2010 back to 2008? I've got both installed but haven't really used 2010.

I started my major project for campus using the 2010 express, but the machines at campus have 2008 pro installed. Since they have no intentions of upgrading soon I had to go back to 2008
 
Top
Sign up to the MyBroadband newsletter
X