Autoincrement revision number ? 
Author Message
 Autoincrement revision number ?

Is it possible to auto increment the revision number like in VB6 ?

TIA



Sat, 16 Jul 2005 19:04:25 GMT  
 Autoincrement revision number ?

Quote:
> Is it possible to auto increment the revision number like in VB6 ?

I think that it does this automatically.  I say this as I am developing
something that has quite a long version number now even though I haven't
changed it manually.  I prefered the project properties in VB6.

Nick.



Sat, 16 Jul 2005 19:14:03 GMT  
 Autoincrement revision number ?

You can do this via the AssemblyVersion attribute. See AssemblyInfo.vb in
your .NET project.

Note the following in the file:

' Version information for an assembly consists of the following four values:
'
'      Major Version
'      Minor Version
'      Build Number
'      Revision
'
' You can specify all the values or you can default the Build and Revision
Numbers
' by using the '*' as shown below:
<Assembly: AssemblyVersion("1.0.*")>

---
Taiwo


Quote:
> > Is it possible to auto increment the revision number like in VB6 ?

> I think that it does this automatically.  I say this as I am developing
> something that has quite a long version number now even though I haven't
> changed it manually.  I prefered the project properties in VB6.

> Nick.



Sat, 16 Jul 2005 20:22:42 GMT  
 Autoincrement revision number ?
When doing this it seems to me the default number never changes (ASP.NET,
assemblyinfo.vb checked out). From where are taken the default numbers ?

Does it change for your ?

Patrice



Quote:

> You can do this via the AssemblyVersion attribute. See AssemblyInfo.vb in
> your .NET project.

> Note the following in the file:

> ' Version information for an assembly consists of the following four
values:
> '
> '      Major Version
> '      Minor Version
> '      Build Number
> '      Revision
> '
> ' You can specify all the values or you can default the Build and Revision
> Numbers
> ' by using the '*' as shown below:
> <Assembly: AssemblyVersion("1.0.*")>

> ---
> Taiwo



> > > Is it possible to auto increment the revision number like in VB6 ?

> > I think that it does this automatically.  I say this as I am developing
> > something that has quite a long version number now even though I haven't
> > changed it manually.  I prefered the project properties in VB6.

> > Nick.



Sat, 16 Jul 2005 22:25:43 GMT  
 Autoincrement revision number ?


Quote:

> You can do this via the AssemblyVersion attribute. See AssemblyInfo.vb
> in your .NET project.

> ' You can specify all the values or you can default the Build and
> Revision Numbers
> ' by using the '*' as shown below:
> <Assembly: AssemblyVersion("1.0.*")>

Jeffrey Richter, in his book, "Applied Microsoft .Net Framework
Programming", warns not to use the "1.0.*" syntax.  He recommends that the
build number be specifically set to a value.  In regards to the automatic
increment of the build number he states:

<QUOTE>
This feature is a bug and shouldn't be used because changing the assembly
version number will break any assemblies that reference this assembly. The
AssemblyInfo.cs file that Visual Studio .Net automatically creates for you
when you create a new project is in error:  it sets the AssemblyVersion
attribute so that its major and minor parts are 1.0 and that the build and
revision parts are automatically updated by the compiler.  You should
definitely modify this file and hard-code all four parts of the assembly
version number.  
</QUOTE>

His book talks about versioning information in detail.

Chris

--
If you don't like lunchmeat, please remove it from my e-mail address to
send me an e-mail



Sat, 16 Jul 2005 22:37:53 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Attach a generated revision number to my email

2. Revision Numbers in Footers

3. Setting File revision number

4. Auto-Incrementing Build/Revision numbers

5. Revision Numbers

6. Revision number

7. How to programmatically change Revision number in VB?

8. How to make build autoincrement version or build number

9. Next Autoincrement number

10. Reading Access Revision Info at signon

11. Get Service Pack Revision

12. help,how to get Revisions in a table

 

 
Powered by phpBB® Forum Software