如何将VS2003项目的转换回滚到VS2010 [英] How to rollback conversion of VS2003 project into VS2010

查看:92
本文介绍了如何将VS2003项目的转换回滚到VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在跨国公司工作。我错误地将VS 2003解决方案转换为VS 2010,某些功能(如Crystal Reports)现在无法正常工作。现在,我的客户希望恢复这些功能。如何撤消转换?

解决方案

对不起,没有这样的事情。项目升级过程有一个备份初始版本的可选步骤。如果你丢了它,它就消失了。没有降级。



此外,不仅要使用上述备份,还要在所有开发中使用一些修订控制系统。如果不这样做,那么您实际上并不是在开发软件,因为它可能会被系统故障的每一个错误步骤所破坏。您需要能够在100%的情况下回溯您的步骤。请参阅此讨论:修订控制系统,可供选择? [ ^ ]。



现在在你的情况下做什么,有时为时已晚?两件事:



首先,您可以仅使用源代码文件重新创建项目。创建一个全新的项目并添加所有现有的源文件。找出引用的程序集是什么并添加引用。这很容易做到:你已经进行了自动转换(升级后的项目)。它可能无法运行,但应保留所有项目结构。打开两个版本的Visual Studio并使用升级的版本作为参考。这很简单。



另外,请看这个CodeProject文章: SolutionConverter [ ^ ]。我曾经使用它或一些类似的项目来降级我的出版物解决方案。如果它不适用于您需要的版本,您可以使用源代码并尝试对其进行改进以覆盖它们。



-SA

I am working in a MNC. I have mistakenly converted a VS 2003 solution into VS 2010 and certain features,like, Crystal Reports, are now not working. Now My Client wants those features back. How can I undo the conversion?

解决方案

Sorry, there is no such thing. The project upgrade procedure had an optional step to backup the initial version. If you lost it, it's gone. There is no a downgrade.

Moreover, use not just the аforementioned backup, but use some Revision Control System in all your development. If you don't, you are not really developing software, as it can be destroyed by every wrong step of system failure. You need to be able to retrace your steps in 100% of situations. Please see this discussion: Revision control systems, which to choose from?[^].

Now what to do in your situation, when it's a bit too late? Two things:

First, you can re-create the project using just the source code files. Create a brand-new project and add all existing source files. Figure out what are the referenced assemblies and add references. It will be really easy to do: you already have auto-converted (upgraded project). It might not be operational, but all project structure should be preserved. Open two versions of Visual Studio and use the upgraded one as the reference. This is really easy.

Also, look at this CodeProject article: SolutionConverter[^]. I used to use it or some similar project to downgrade my solutions for publications. If it does not work for versions you need, you can use source code and try to improve it to cover them.

—SA


这篇关于如何将VS2003项目的转换回滚到VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆