我在 C# 中创建了一个 excel 插件。它使用 dllimport 使用 C++ dll 本机代码。它在我的本地机器上运行良好。现在我想在另一台 PC/客户端 PC 上使用它。我也尝试过 regasm。我注册成功如下:
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 插件呢?
提前谢谢!