如何恢复C#项目的前一阶段? [英] how to recover previous stage of c# project?

查看:195
本文介绍了如何恢复C#项目的前一阶段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#项目,并且将整个项目文件保存在两个具有相同名称的位置.一个是在Visual Studio的默认位置,另一个是在不同驱动器中的同一项目的副本.问题是我对代码进行了许多更改并将其保存在默认位置.我错误地打开了保存在不同驱动器上的其他版本以检查某些设置,然后将其关闭.同样,当我从默认位置打开项目时,它会更改为上一个阶段.

I was working with C# project and I saved whole project file in two locations with same name. One is in visual studio default location and another is the copy of same project in different drive, The problem is I made many changes in code and saved in default location. Mistakenly I opend the different version which was saved on different drive to check some settings and I close it. Again when I open project from the default location it changes to previous stage. Could you please anyone help me how to recover the latest changes?

推荐答案

是时候开始使用源代码管理了,如果您使用GIT源代码管理,请看看是单个开发人员还是分布式开发人员,或者您可以将SVN用于同一地点的团队.

在源代码管理中,您始终可以还原"或签出"较旧的版本.
It''s time you start using source control, take a look a t GIT source control if you are a single or distributed developer, or you can use SVN for a co-located team.

When in source control you can always "revert" or "check-out" an older version.


这篇关于如何恢复C#项目的前一阶段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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