Creating a manifest file? PublicKeyToken ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wildman@noclient.net

    Creating a manifest file? PublicKeyToken ??

    I'm having to create a manifest.xml file so I can deploy a webpart
    into a Sharepoint server.

    I need to plug in a PublickeyToken for the assembly.. where do I get
    this?

    <SafeControl Assembly="Hello WorldWebPart, Version=1.0.0.0 ,
    Culture=neutral ,
    PublicKeyToken= ?????"
    Namespace="MyWe bPartLibrary" TypeName="*"/>
    </SafeControls>



    When I was deploying manually i was adding this line into a webconfig
    and using value of null.. why is the PublicKeyToken important?

    Thank you for any help or information.
  • henk holterman

    #2
    Re: Creating a manifest file? PublicKeyToken ??

    wildman@noclien t.net wrote:
    I'm having to create a manifest.xml file so I can deploy a webpart
    into a Sharepoint server.
    >
    I need to plug in a PublickeyToken for the assembly.. where do I get
    this?

    The Framework contains a little tool called sn, open a command prompt
    (Start Menu|Visual Studio|Visual Studio Tools|Visual Studio Command
    Prompt) an type

    cd \MyProjectDir
    sn -k MyKeyfile.snk


    why is the PublicKeyToken important?
    It acts as a signature. There are many strategies but basically you'll
    only need 1 key file per Company (or Department).

    -HH-

    Comment

    • henk holterman

      #3
      Re: Creating a manifest file? PublicKeyToken ??

      wildman@noclien t.net wrote:
      I'm having to create a manifest.xml file so I can deploy a webpart
      into a Sharepoint server.
      >
      I need to plug in a PublickeyToken for the assembly.. where do I get
      this?
      Several utilities will tell you this token.
      For example, open a Command Prompt (from StartMenu - Visual Studio
      Tools) and type

      sn -T MyAssemby.DLL


      IlDasm is another utility. Both come with the FrameWork.

      -HH-

      Comment

      Working...