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.
Printable View
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.
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.
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.
For 2005 its....
Project Properties > Publish > Publish Version > check "Automatically Increment revision with each publish."
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.
Hmm, hard to see but looks different. Perhaps because I am running Team Suite.
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.