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

前端 未结 10 922
你的背包
你的背包 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 11:14

    In VS, right click your project, select "Add Reference...", and you will see all the namespaces that exist in your GAC. Choose Microsoft.SqlServer.Management.RegisteredServers and click OK, and you should be good to go

    EDIT:

    That is the way you want to do this most of the time. However, after a bit of poking around I found this issue on MS Connect. MS says it is a known deployment issue, and they don't have a work around. The guy says if he copies the dll from the GAC folder and drops it in his bin, it works.

提交回复
热议问题