How to reference a self made assembly that is installed in the GAC in visual studio?

后端 未结 3 1010
礼貌的吻别
礼貌的吻别 2021-01-07 05:04

I created a homemade assembly and I think I installed it correctly in the GAC using the .Net 2.0 configuration tool (mscorcfg.msu) However, when I want to reference it in vi

3条回答
  •  天命终不由人
    2021-01-07 05:45

    The add reference dialog actually looks at the registry, in particular:

    • [HKEY_LOCAL_MACHINE]\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
    • [HKEY_CURRENT_USER]\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders

    To add your assembly, you must edit these registry keys. Or simply using the "Browse..." button (instead) may be more tempting.

提交回复
热议问题