GAC Assembly Missing in Add Reference dialog

前端 未结 7 995
梦如初夏
梦如初夏 2021-02-10 02:06

I have an Interop assembly lying in GAC; Windows Explorer clearly shows it listed in the C:\\WINDOWS\\assembly folder. Yet, when I try to add a reference to it in f

7条回答
  •  长发绾君心
    2021-02-10 02:55

    Alternatively, I edited the Project file and added the reference manually.

    1. Install the assembly in GAC. gacutil /i "Foo.dll"
    2. Find the strong name of the assembly. gacutil /l will give you the list from which you can pick.
    3. In the consuming project file add the following line (from the previous step)
    4. And it works. :)

提交回复
热议问题