Feb 15th, 2007, 05:11 PM
#1
Thread Starter
Hyperactive Member
Auto increment build version
Hello,
In vb6 there is an option to auto increment the build version when the code is compiled. I have been looking for a way to do that in .NET, is it possible? If so, how?
Thank you for your help.
Feb 15th, 2007, 05:25 PM
#2
Re: Auto increment build version
Sure its possible. Using the AssemblyInfo class in 2003 ...
<Assembly: AssemblyVersion("3.0.*")>
Where it will increment 3.0.?????
Then in the configuration properties of the project you would check the box - Enable Incremental Builds.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 15th, 2007, 05:40 PM
#3
Thread Starter
Hyperactive Member
Re: Auto increment build version
I'm sorry, I should have put that this is for VS2005.
I did adjust the information in the AssemblyInfo class, but I did not see a check box in the properties page. Is there something different for 2005?
I should also say that this is a CCW, incase that changes anything as well.
Thank you.
Feb 15th, 2007, 05:48 PM
#4
Re: Auto increment build version
For 2005 its....
Project Properties > Publish > Publish Version > check "Automatically Increment revision with each publish."
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 15th, 2007, 06:18 PM
#5
Thread Starter
Hyperactive Member
Re: Auto increment build version
Thanks for your help RobDog, but I seem to be missing something. Let me make sure I understand you correctly, first. Below is a picture of Project Properties. I shrunk it a bit so it may not be clear, but is this the screen you are talking about? If so, I don't see a publish section on there. Am I missing something?
Thank you for your help.
Attached Images
Feb 15th, 2007, 06:22 PM
#6
Re: Auto increment build version
Hmm, hard to see but looks different. Perhaps because I am running Team Suite.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Feb 15th, 2007, 06:33 PM
#7
Thread Starter
Hyperactive Member
Re: Auto increment build version
That could be, I am using Pro. After doing some more reading, I think the problem is that it is for click once deployment. I have my CCW going in a merge module, then in an installation project, all in the same solution. I am still looking, but a quick answer would be very helpful.
Thank you.
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