您的位置:首页 > 其它

编写DLL加入GAC

2014-05-08 08:54 453 查看
按照网上的文章实践了一个简单的GLL加入到GAC,注册倒是成功了,但是要用的时候,找不到引用。

解决办法如下:

To display an assembly in the Add Reference dialog box

Move or copy the assembly to one of the following locations:

The current project directory. (You can find these assemblies by using the Browse tab.)

Other project directories in the same solution. (You can find these assemblies by using the Projects tab.)

- or -

Set a registry key that specifies the location of assemblies to display:

For a 32-bit operating system, add one of the following registry keys.

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\VersionMinimum\AssemblyFoldersEx\MyAssemblies]@="AssemblyLocation"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\VersionMinimum\AssemblyFoldersEx\MyAssemblies]@="AssemblyLocation"

For a 64-bit operating system, add one of the following registry keys in a 32-bit registry hive.

[HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\VersionMinimum\AssemblyFoldersEx\MyAssemblies]@="AssemblyLocation"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\VersionMinimum\AssemblyFoldersEx\MyAssemblies]@="AssemblyLocation"

VersionMinimum is the lowest .NET Framework version that applies. If VersionMinimum is v3.0, folders specified in AssemblyFoldersEx apply to projects that target .NET Framework 3.0 and later.

AssemblyLocation is the directory of the assemblies that you want to appear in the Add Reference dialog box, for example, C:\MyAssemblies\.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: