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
.
さて、この状況に陥る可能性のある他の誰かのために、私自身の質問に答えるために:
まず、公開/秘密鍵を「コンテナ」に入れる必要があります。sn.exe
あなたのためにこれを行うことができます:
sn.exe -i MySpecial.pfx MagicContainerName
tlbimp.exe
次に、次のように使用できます。
tlbimp.exe MyActiveX.dll /out:MyActiveX.Interop.dll /keycontainer:MagicContainerName
最後に、作成したコンテナーをクリーンアップします。
sn.exe -d MagicContainerName