Click here to Skip to main content
15,916,601 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'd been struggling the past couple of days trying to figure out why my program wouldn't run correctly when I executed the program direct from the Bin directory, but worked fine while with debug mode in VS2010.

I decided to go back to the original project folder I'd written it from and added the new bits of code into that and now it works?

I wanted to be able to have different folders for each version of the build, but it doesn't seem to like doing this? Could anyone explain why?

And also, if I am unable to copy and paste the original source files into a new directory, and work on a separate project, how can I keep new versions in separate directories?
Posted

Why? Because you're not using a source control system, like Team Foundation Server, Subversion, Git, or whatever.

If you wanted to keep different versions of the source code and/or executable, you either have to copy those files off to a backup location somewhere or you have to use a version control system.
 
Share this answer
 
Im not exactely sure what you mean

usually, a debug exe will go to bin\debug while a release exe will go to bin\release - all this is customisable in the build settings for a project

>>
Quote:
And also, if I am unable to copy and paste the original source files into a new directory, and work on a separate project, how can I keep new versions in separate directories?


ok, what I would do is (depending on why Im doing this)

a) add a new project to my solution, and work on a copy of the files there - note that they are now completly separate from the original files, there's no going back - unless you do a manual process, for that you could use a 'difference' tool - I use 'Beyond Compare' from Scooter Software

OR

b) use source control, and 'branch' my changes, with a view that I might merge the code back into the mainline at some later stage

You havnt provided enough info on why you are doing this
Quote:
And also, if I am unable to copy and paste the original source files into a new directory, and work on a separate project, how can I keep new versions in separate directories?
so its a bit hard to advise you further (I'd be leaning towards source control personally... if you dont like command-line stuff, get a (free :-) ) copy of Atlassian SourceTree and use that)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900