tags:

views:

81

answers:

3

hi

ho to manage version of my C# program ?

how you do it ?

thank's in advance

+2  A: 

You can use some version control software like subversion.

Vash
+1  A: 

The question is very ambiguous. If you are referring to source code version management, then this is the best source code version management "how to" that I have ever read: http://www.ericsink.com/scm/source_control.html

Hope it helps.

CesarGon
And why in earth is this downvoted?
Carlos Muñoz
@Carlos -- because the OP never mentioned `version-control`, @CesarGon added that tag. Actually, the OP's original tag of `winforms` implies that he's more likely asking about assembly versioning, but that's still a guess.
STW
@STW: you got a point there.
CesarGon
...just edited my answer to clarify the scope.
CesarGon
@STW Still it was no reason to downvote. The question was already very poorly written and no possibly right answer can be assumed. Editing the answer or commenting would have been in my opinion more useful.
Carlos Muñoz
@Carlos: I agree; that's why I just voted to reopen the question. I think the author should be given the opportunity to edit and clarify it.
CesarGon
@Carlos - I partly agree. If it hand't been upvoted then I wouldn't have downvoted it, but I felt like @CesarGon's edit to the question made his answer more correct than it would have been without the edit. It's actually quite a good resource for an intro to SCM, but I get the feeling from the `winforms` tag the OP originally used that he's not asking about source-control at all.
STW
A: 

Your question is very poorly written, but I'll assume you're asking:

"How do I set the version of my program?"

To which the answer is simple: you can do it programmatically via AssemblyInfo.cs, or via Visual Studio by going to the Project's Property window.

To do it in AssemblyInfo you use 2x attributes:

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

You can read the MSDN documentation on both:

STW