How can I reference a dll in the GAC from Visual Studio?

前端 未结 10 916
你的背包
你的背包 2020-12-02 10:20

This assembly is in the GAC: Microsoft.SqlServer.Management.RegisteredServers.dll

How can I add a reference to this assembly in Visual Studio?

I can view the

10条回答
  •  佛祖请我去吃肉
    2020-12-02 10:57

    May be it's too late to answer, but i found a very simple way to do this(without a hack).

    1. Put your dll in GAC (for 3.5 Drag Drop inside "C:\Windows\assembly\")
    2. GoTo Projects --> Properties
    3. Click Reference Path (for 3.5 it's "C:\Windows\assembly\")
    4. and Build

    Hope it helps

提交回复
热议问题