1
我在C#中創建了一個excel插件。它使用dllimport使用C++ dll本機代碼。它在我的本地機器上正常工作。現在我想在另一臺PC /客戶端PC上使用它。我也嘗試過regasm。我註冊成功如下:如何將dll用作不同機器的加載項?
C:\windows\system32>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm /code
base C:\Users\ggirgup\Desktop\CsharpDllcallingCPPDll.dll
Microsoft .NET Framework Assembly Registration Utility version 4.0.30319.17929
for Microsoft .NET Framework version 4.0.30319.17929
Copyright (C) Microsoft Corporation. All rights reserved.
RegAsm : warning RA0000 : Registering an unsigned assembly with /codebase can ca
use your assembly to interfere with other applications that may be installed on
the same computer. The /codebase switch is intended to be used only with signed
assemblies. Please give your assembly a strong name and re-register it.
Types registered successfully
但是,當我打開excel,它不會在插件中顯示。 那麼如何在另一臺PC上使用這個C#dll作爲excel-plugin?
在此先感謝所以!