Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Where do i change my program version number in coding before publishing?

Example: I create one form1.cs with textbox. i.e, 1.0.0.0 version by default.

I create another form1.cs with 2 textboxes as another application. i.e, Now i want to change this version 1.0.0.0 to 1.0.0.1
Posted
Updated 24-Apr-13 5:30am
v3

Hi.

I recommend you using this little Add-in:
http://autobuildversion.codeplex.com/[^]

Greetings.
 
Share this answer
 
You can edit AssemblyInfo.cs file
C#
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

For further settings regarding build version you can explore your setup project or develop your own add-in for automated version increment.
 
Share this answer
 
Comments
Friendsaa 24-Apr-13 13:28pm    
Thanks, But Even though i change there to 2.0.0.0, .manifest file has 1.0.0.0 in debug folder why?
I found solution myself, We need to add application.manifest file for the project, and we can change there version manually.
 
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