|
-
Nov 7th, 2006, 04:56 AM
#1
Thread Starter
Fanatic Member
automatically update Windows form version
hi guys! is it posible for me to update the version of my windows form each time I publish it?
-
Nov 7th, 2006, 08:34 AM
#2
Re: automatically update Windows form version
Can you elaborate on that? What do you mean with 'updating the version of your windows form'?
I code C#....

-
Nov 7th, 2006, 05:13 PM
#3
Re: automatically update Windows form version
Do you actually mean "publish", as in create a ClickOnce installer? If so then there's an option to increment the revision number on the Publish tab of the project properties and it's checked by default. If you mean something else then you'd need to specify, and also be careful about using terms that have specific meaning without clarification.
-
Nov 7th, 2006, 07:09 PM
#4
Thread Starter
Fanatic Member
Re: automatically update Windows form version
Sorry for that.. becuase im on a hurry when i post that question. anyway, what I mean of that is the product version of my Windows form and not the version of the publish, the one that being return by
Code:
Application.ProductVersion
.
Last edited by daimous; Nov 7th, 2006 at 07:12 PM.
-
Nov 7th, 2006, 07:28 PM
#5
Lively Member
Re: automatically update Windows form version
It's stored in the AssemblyInfo file. By default it's 1.0.0.0, but you can put asterisks in there to have it automatically updated, e.g. [assembly: AssemblyVersion("1.0.0.*")]
-
Nov 7th, 2006, 07:29 PM
#6
Re: automatically update Windows form version
I've seen several posts explain how to set the assembly version programmatically, although I can't remember how to do it exactly. It would involve a VS macro or some other form of VS extension I would assume. Note also that Setup projects allow you to specify prebuild actions, one of which could be incrmenting the version number, while ClickOnce publishing doesn't as far as I'm aware. That means that you'd have to invoke your macro manually from the tool bar or menu system before publishing.
-
Nov 7th, 2006, 07:57 PM
#7
Thread Starter
Fanatic Member
Re: automatically update Windows form version
i'll try that buoy and i'll try to look for it jm...Thanks for the inputs guys!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|