<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de bal\00E3o Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextodebaloChar
        {mso-style-name:"Texto de bal\00E3o Char";
        mso-style-priority:99;
        mso-style-link:"Texto de bal\00E3o";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT-BR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">We have here several projects is this structure:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">MainProj (version 1.0.0.0-1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|--- proj1 (version 1.0.0.0-1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|--- proj2 (version 1.0.0.0-1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">| |<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">| |---proj2.1 (version 1.0.0.0-1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|--- proj3 (version 1.0.0.0-1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> |<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> |---proj3.1 (version 1.0.0.0-1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Our release convention is A.B.C.D-E:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">A -> major<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">B -> minor<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C -> micro<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">D -> patch<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">E -> build number<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Sometimes we make modifications on some of this projects. Suppose I change some code on proj1 and proj2.1.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">MainProj (version 1.0.0.0-2) - this recompiled because it’s dependencies have changed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|--- proj1 (version 1.0.0.1-1) - this is recompiled because it’s code have changed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|--- proj2 (version 1.0.0.0-2) - this recompiled because it’s dependencies have changed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">| |<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">| |---proj2.1 (version 1.0.0.1-1) - this is recompiled because it’s code have changed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">|--- proj3 (version 1.0.0.0-1) - this haven’t changed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> |<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> |---proj3.1 (version 1.0.0.0-1) - this haven’t changed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So, my question is:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there a way to detect a rebuilt (code has NOT changed) and increment it’s build number? And when code change increment it’s patch number?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Renan Biegelmeyer<o:p></o:p></span></p>
</div>
</body>
</html>