1 Reply Latest reply on Jun 2, 2016 4:39 PM by Dmitry Zamoshnikov

    Visual Studio + EPDM Revision Control

    Dmitry Zamoshnikov

      Can EPDM be used to control Visual Studio files?


      Can I add variables to the DLL's and *.cs files (Major Revision.Minor Revision) and have it linked to the assembly info file?




      I build the solution and change the state to a minor revision (just increases the minor revision by 1).  Can the assembly info.cs file pull from the internal EPDM revision variable and increase its own minor revision by one?


      Current Build: v0.1

      Check in

      Change to state "Minor Revision", increase minor version to v0.2.

      "Assembly Info.cs" pulls from EPDM's "Minor Revision" variable and changes its own version to v0.2.


      It seems like a stretch and would probably require a lot of coding...might be better to do it by hand.

        • Re: Visual Studio + EPDM Revision Control
          Dmitry Zamoshnikov

          Hmm...I think I could open the file in the program and pull the variable list from EPDM.  I can Parse the "Assembly Info.cs" and look for the

          "[assembly: AssemblyFileVersion("


          Then just add """" + MajorRevision + "." + MinorRevision + ".0.0"


          I think that could work.  I'll have to test it out.


          So it would end up working like this:




          if (filename == "assembly info.cs") then

               Search w/in the file for "[assembly: AssemblyFileVersion("

               If found

                    Find Variable "MajorRevision"     : MajorRevision

                    Find Variable "MinorRevision"     : MinorRevision

                    Find end of line where "[assembly: AssemblyFileVersion(" was found

                    Delete everything after "[assembly: AssemblyFileVersion("

                    Add """" + MajorRevision + "." + MinorRevision + ".0.0"

               end if

               Close "assembly info.cs"

          end if