views:

53

answers:

2

I'm working on the upgrade of my c# visual express 2008 project to a newer version. How do I manage this without having to copy the whole project directory and work into the copied directory project?

+3  A: 

Create a new branch in the source control system that you are using. You can read more about it at Branching and Merging Primer.

If you are not using a source control I suggest you start with subversion. VisualSVN SERVER is an easy way to get started. You can use TortoiseSVN to work with it or visual studio plugins such as ankhsvn or VisualSVN.

You do not really have to install svn server. You can create repository with Tortoise Svn too and use file protocol to connect to it. This means that you can put the repository on your flash drive and query it with you so that you can work from any computer.

Giorgi
I don't think I'm using any source control system... just c# express
HoNgOuRu
ok, I'm downloading SVN right now!thanks, I thought c# had one...
HoNgOuRu
thanks for the hint Giorgi, I'll set this question as answered.:)
HoNgOuRu
@HoNgOuRu You are welcome :)
Giorgi
Visual Studio Express does not support add-ins, so you can't use ankhsvn or VisualSVN with it. Having said that, SVN is excellent and entirely usable without the Visual Studio integration, especially if you do use TortoiseSVN (which integrates with Windows Explorer).
Jeff Sternal
Yes, I forgot that the user is using express edition.
Giorgi
ok, I'll download that thenthanks, I was encouraging problems while trying to find the ankhsvn from the ide. thanks
HoNgOuRu
A: 

Subversion is good, and easy to pick up, but you might also want to consider Mercurial or Git. These are almost as easy to pick up and give you some flexibility in that they are distributed - which I have found makes much more sense for an individual user. These also tend to take up less space in the long run as well.

In addition, for your needs, you will not necessarily need to branch. Get your chosen Source Control installed, and create your repository with your stable version in it. Once you have that, as long as you have a backup in place, you will always be able to get back to your stable version. If you ever have to do a bug fix on your stable version, that would be the time to branch from that version. For a small individual repository, it'll probably be less confusing to keep your main work in the trunk -

Lastly, since you are new to source control, get in the habit of doing one thing at a time, then checking that change in. Your source control tool (or commandline) should be open every time your IDE is, and you should use it often. Even small changes are important to track. Establishing this habit will take work, but will pay off immensely.

Good luck!

Audie
And on the topic of habits, I find that it's best to only check in when it's working (properly working as opposed to just compiling)! If you half-fix an issue, check it in and then come back a few days later it can lead to all sorts of confusion as to what you've done and what you haven't, or any other edits in the mean time.
AndyC