Browse / Select assemblies from the PAC or elsewhere

I need to allow users to select an assembly in much the same way Visual Studio does. Either from the GAC, or from another location in the file system.

A simple OpenFileDialog will not be sufficient, because switching to c: \ windows \ assembly does not allow access to the actual locations of the assembly files in the GAC.

I am not writing a Visual Studio plugin, so I cannot use DTE.

How should I do it?

+3
source share
1 answer

You need to use the unmanaged CreateAssemblyEnum API, which returns the IAssemblyEnum interface.

+3
source

Source: https://habr.com/ru/post/1737179/


All Articles