2

Anybody have an example of how to use tlbimp.exe's /keycontainer command line switch?

The googles...they don't help. It's always /publickey, or /keyfile. No example of using /keycontainer.

4

1 に答える 1

3

さて、この状況に陥る可能性のある他の誰かのために、私自身の質問に答えるために:

まず、公開/秘密鍵を「コンテナ」に入れる必要があります。sn.exeあなたのためにこれを行うことができます:

sn.exe -i MySpecial.pfx MagicContainerName

tlbimp.exe次に、次のように使用できます。

tlbimp.exe MyActiveX.dll /out:MyActiveX.Interop.dll /keycontainer:MagicContainerName 

最後に、作成したコンテナーをクリーンアップします。

sn.exe -d MagicContainerName
于 2009-08-13T20:21:37.040 に答える