Reading the actual vb.net project published build #

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

    Reading the actual vb.net project published build #

    This seems like a silly question -- How can I read the actual publish
    version build data??.

    When I use:

    With My.Application. Info
    Version.Text = "Version: " _
    + Format(.Version .Major + .Version.Minor / 10
    + .Version.Build / 100, "0.00")
    End With

    All I get is Version: 1.0 even though the actual publish is
    1.1.150??? Minor and build are both 0
  • Gillard

    #2
    Re: Reading the actual vb.net project published build #

    My.Application. Info.Version.To String

    "barcrofter " <jd.prsn@gmail. comwrote in message
    news:3ac750b9-72de-42d1-b578-6a31b7010f99@p1 0g2000prf.googl egroups.com...
    This seems like a silly question -- How can I read the actual publish
    version build data??.
    >
    When I use:
    >
    With My.Application. Info
    Version.Text = "Version: " _
    + Format(.Version .Major + .Version.Minor / 10
    + .Version.Build / 100, "0.00")
    End With
    >
    All I get is Version: 1.0 even though the actual publish is
    1.1.150??? Minor and build are both 0

    Comment

    • barcrofter

      #3
      Re: Reading the actual vb.net project published build #

      On Sep 21, 2:44 pm, "Gillard" <gillard_george s@@@@@@@@@hotma il.com>
      wrote:
      My.Application. Info.Version.To String
      >
      "barcrofter " <jd.p...@gmail. comwrote in message
      >
      news:3ac750b9-72de-42d1-b578-6a31b7010f99@p1 0g2000prf.googl egroups.com...
      >
      This seems like a silly question -- How can I read the actual publish
      version build data??.
      >
      When I use:
      >
      With My.Application. Info
                 Version.Text = "Version: " _
                 + Format(.Version .Major + .Version.Minor / 10
      + .Version.Build / 100, "0.00")
      End With
      >
      All I get is Version: 1.0 even though the actual publish is
      1.1.150???  Minor and build are both 0
      ok My.Application. Info.Version.To String reads 1.0.0.0 which is the
      problem.

      is this a feature of the express edition?

      Comment

      • Family Tree Mike

        #4
        Re: Reading the actual vb.net project published build #

        I found the following post from an Andrej Tozon in 2006: (full context:
        http://social.msdn.microsoft.com/for...4-b623db6ba87b)


        The version you're currently displaying is not the published version, but an
        application (assembly) version. Those version numbers aren't the same and
        are not synchronized. To use the published version, use
        My.Application. Deployment.Curr entVersion:

        If My.Application. IsNetworkDeploy ed Then
        lblLabel.Text = My.Application. Deployment.Curr entVersion.ToSt ring()
        End If

        Note the if statement above: the Deployment.Curr entVersion is only available
        when the application is deployed with ClickOnce, which means it won't be
        available when deployed otherwise or run within Visual Studio, when
        debugging (accessing it will throw an exception).



        "barcrofter " <jd.prsn@gmail. comwrote in message
        news:e9230434-f8a3-4933-b849-d32449ae8851@r1 5g2000prh.googl egroups.com...
        On Sep 21, 2:44 pm, "Gillard" <gillard_george s@@@@@@@@@hotma il.com>
        wrote:
        My.Application. Info.Version.To String
        >
        "barcrofter " <jd.p...@gmail. comwrote in message
        >
        news:3ac750b9-72de-42d1-b578-6a31b7010f99@p1 0g2000prf.googl egroups.com...
        >
        This seems like a silly question -- How can I read the actual publish
        version build data??.
        >
        When I use:
        >
        With My.Application. Info
        Version.Text = "Version: " _
        + Format(.Version .Major + .Version.Minor / 10
        + .Version.Build / 100, "0.00")
        End With
        >
        All I get is Version: 1.0 even though the actual publish is
        1.1.150??? Minor and build are both 0
        ok My.Application. Info.Version.To String reads 1.0.0.0 which is the
        problem.

        is this a feature of the express edition?

        Comment

        Working...