Public Key changes on Rebuild All?

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

    Public Key changes on Rebuild All?

    Hi there,

    Could someone help me over my lack of knowledge here? I am trying to
    find out why, when I use the same key pair, and the assembly version is
    constant, does the public key change with each Rebuild All in VS 2003?
    This sort of behavior will change the assembly strong name which is a
    Bad Thing when trying to actually use code beyond the development
    environment...

    I want the strong name to remain constant, and by all accounts it
    should, given the same version number and key pair...

    thanks,
    -rory 8)

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Peter Koen

    #2
    Re: Public Key changes on Rebuild All?

    rplaire <rory.plaire@no _spam_no.co.ben ton.or.us> wrote in
    news:emjThQwoDH A.2232@TK2MSFTN GP09.phx.gbl:
    [color=blue]
    > Hi there,
    >
    > Could someone help me over my lack of knowledge here? I am trying to
    > find out why, when I use the same key pair, and the assembly version is
    > constant, does the public key change with each Rebuild All in VS 2003?
    > This sort of behavior will change the assembly strong name which is a
    > Bad Thing when trying to actually use code beyond the development
    > environment...
    >
    > I want the strong name to remain constant, and by all accounts it
    > should, given the same version number and key pair...
    >
    > thanks,
    > -rory 8)
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
    >[/color]

    seems like you have registered a custom build step that regenerates the
    keyfile on each builds.

    check your project build settings. what you described is not a default
    behviour of vs.net

    --
    ------ooo---OOO---ooo------

    Peter Koen - www.kema.at
    MCAD CAI/RS CASE/RS IAT

    ------ooo---OOO---ooo------

    Comment

    • Rory Plaire

      #3
      Re: Public Key changes on Rebuild All?

      >[color=blue]
      > seems like you have registered a custom build step that regenerates the
      > keyfile on each builds.
      >
      > check your project build settings. what you described is not a default
      > behviour of vs.net[/color]

      Hi Peter,

      Thanks for the insight. I followed this through on this thread:
      news:eGSGoNBpDH A.2424@TK2MSFTN GP10.phx.gbl in the
      microsoft.publi c.dotnet.framew ork group.

      The issue was I was using sn -t to display the token, and not sn -T.

      -r 8)

      Comment

      Working...