Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Interops and Strong Names

Interops and Strong Names

Scheduled Pinned Locked Moved C#
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    je_gonzalez
    wrote on last edited by
    #1

    Does anyone out ther know how to work around the problem that Interops (Office one for sure) cannot be included in assemblies that are strong named?

    J 1 Reply Last reply
    0
    • J je_gonzalez

      Does anyone out ther know how to work around the problem that Interops (Office one for sure) cannot be included in assemblies that are strong named?

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      If the product includes a Primary Interop Assembly (PIA) those should be strongly named already. Office has Primary Interop Assemblies available, check the general MSDN downloads section for them. If you are generating your interop assembly using VS.NET; in the project properties you will find a setting which lets you specify a keyfile to use for the generated interop assembly. Unfortunately this feature isn't available in VB.NET, so you'll have to resort to using the command line tools aximp and tlbimp (refer to MSDN for their usage). HTH, James "then when you go to bed...wait, you dont do that do you....ok....when you plug into the 'hive mind' to charge yourself, ill hack into your head" Nnamdi Onyeyiri over MSN

      J 1 Reply Last reply
      0
      • J James T Johnson

        If the product includes a Primary Interop Assembly (PIA) those should be strongly named already. Office has Primary Interop Assemblies available, check the general MSDN downloads section for them. If you are generating your interop assembly using VS.NET; in the project properties you will find a setting which lets you specify a keyfile to use for the generated interop assembly. Unfortunately this feature isn't available in VB.NET, so you'll have to resort to using the command line tools aximp and tlbimp (refer to MSDN for their usage). HTH, James "then when you go to bed...wait, you dont do that do you....ok....when you plug into the 'hive mind' to charge yourself, ill hack into your head" Nnamdi Onyeyiri over MSN

        J Offline
        J Offline
        je_gonzalez
        wrote on last edited by
        #3

        Thank you sir... It would have been much easier if MS read the AssemblyInfo file for the project (but maybe is in the next release)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups