Versioning problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    Versioning problem

    Hi

    I am picking up app version using Application.Pro ductVersion.ToS tring. The
    problem is it always comes up with 1.0.0.0. Is the version not supposed to
    change with successive builds?

    Thanks

    Regards


  • =?Utf-8?B?U2l2YSBN?=

    #2
    RE: Versioning problem

    It is the assembly version that will change for every build (assuming it has
    been defined so). Product version will reflect what is mentioned for the
    AssemblyFileVer sion attribute (in AssemblyInfo.cs if you are using VS) or
    from VS menu Project | <projectPropert ies | Application tab and Assemly
    Information dialog box.

    "John" wrote:
    Hi
    >
    I am picking up app version using Application.Pro ductVersion.ToS tring. The
    problem is it always comes up with 1.0.0.0. Is the version not supposed to
    change with successive builds?
    >
    Thanks
    >
    Regards
    >
    >
    >

    Comment

    • =?Utf-8?B?U2l2YSBN?=

      #3
      RE: Versioning problem

      Forgot to add: to get the assembly version use
      Assembly.GetEnt ryAssembly().Ge tName().Version .ToString().

      Assuming [assembly: AssemblyVersion ("1.0.0.*")] has been added, the above
      will get a different version for each build.


      "Siva M" wrote:
      It is the assembly version that will change for every build (assuming it has
      been defined so). Product version will reflect what is mentioned for the
      AssemblyFileVer sion attribute (in AssemblyInfo.cs if you are using VS) or
      from VS menu Project | <projectPropert ies | Application tab and Assemly
      Information dialog box.
      >
      "John" wrote:
      >
      Hi

      I am picking up app version using Application.Pro ductVersion.ToS tring. The
      problem is it always comes up with 1.0.0.0. Is the version not supposed to
      change with successive builds?

      Thanks

      Regards

      Comment

      • John

        #4
        Re: Versioning problem

        Replacing

        <Assembly: AssemblyVersion ("1.0.0.0")>
        <Assembly: AssemblyFileVer sion("1.0.0.0") >

        with

        <Assembly: AssemblyVersion ("1.0.*")>

        bring the version using Application.Pro ductVersion.ToS tring

        Thanks

        Regards

        "Siva M" <shiva_sm@onlin e.excite.comwro te in message
        news:0B47C9D1-E537-4EAF-95A0-FBB4EFC26A0E@mi crosoft.com...
        Forgot to add: to get the assembly version use
        Assembly.GetEnt ryAssembly().Ge tName().Version .ToString().
        >
        Assuming [assembly: AssemblyVersion ("1.0.0.*")] has been added, the above
        will get a different version for each build.
        >
        >
        "Siva M" wrote:
        >
        >It is the assembly version that will change for every build (assuming it
        >has
        >been defined so). Product version will reflect what is mentioned for the
        >AssemblyFileVe rsion attribute (in AssemblyInfo.cs if you are using VS) or
        >from VS menu Project | <projectPropert ies | Application tab and Assemly
        >Information dialog box.
        >>
        >"John" wrote:
        >>
        Hi
        >
        I am picking up app version using Application.Pro ductVersion.ToS tring.
        The
        problem is it always comes up with 1.0.0.0. Is the version not supposed
        to
        change with successive builds?
        >
        Thanks
        >
        Regards
        >
        >
        >

        Comment

        Working...