enumerating assemblies in GAC

后端 未结 8 1832
故里飘歌
故里飘歌 2020-12-05 16:14

How can I enumerate all available assemblies in GAC in C#?

Actually I am facing an issue with a stupid code - the assembly called Telerik.Web.UI.dll is referred and

相关标签:
8条回答
  • 2020-12-05 16:46

    You don't really need to write something in C# to find out if this specific dll is in the gac. You can use gacutil.exe with the /l option from the command line to list the contents of the GAC.

    0 讨论(0)
  • 2020-12-05 16:46

    Check this codeproject GAC API Interface article. This uses undocumented fusion.dll to enumurate the GAC. But author claims that

    This code is known to work with .NET 1.1 and 2.0. Please note that the DLL fusion.dll is different in 1.1 and 2.0. So if you have both frameworks installed, make sure to point the code to the right DLL. Otherwise most API-calls will fail. The default implementation uses the one found in the WINDOWS directory.

    0 讨论(0)
提交回复
热议问题