I've been working on a program in Visual Studio 2010. I'm still having compatibility issues I've mentioned here before.
Is there 开发者_JAVA百科a way to downgrade my C# project so that I can open it with Visual Studio 2008 (without copying the code over and recreating the form)?
For those who'd like to know, the problem I'm having is some sort of unhandled exception as soon as the program runs on the Windows XP machine (it delivers the "send error report" window). I spoke to some people who suggested it might be a compatibility issue, so I thought I'd give that a try. I figured if I could get it to compile on Visual Studio 2008 on a Windows XP SP2 machine, it'd work on the necessary machine. If anyone has any suggestions as to what else the problem could be, that is also welcome.
Give this a try:
How to downgrade from Visual Studio 2010 project to VS 2008 or VS 2005?
The easiest way to downgrade your project is opening you sln file with the editor and change the following things:
to play safe you should make a copy of your exisiting project and save it somewhere else.
1.) in the 1.line is somewhere "Format Version 11.00" --> change 11.00 to 10.00
2.) in the 2.line is "... Express 2010" change 2010 to 2008.
Save it and open with C#!
With ease no...here is a post on how it could possibly work. In addition if you have 4.0 features you will have to revert those to 3.5 syntax.
精彩评论