AlexandruC
AlexandruC

Reputation: 3637

Load & unload shell extension library

I am developing a context menu (shell extension), and when I try to rebuild the solution it says that the .dll library cannot be opened because it is in use. How can I unload the library manually so I can rebuild it and load it again after rebuilt? Any cmd line commands?

Upvotes: 2

Views: 1828

Answers (2)

AlexandruC
AlexandruC

Reputation: 3637

This is the solution I found: There is a small free program called ShellExView with which I disable the shell extension, I restart the explorer using the command: taskkill /f /im explorer.exe, rebuild the library in visual studio, enable the extension in ShellExView and start explorer again using explorer.exe in command prompt.

Upvotes: 2

Luke
Luke

Reputation: 11421

Here are some tips on working with shell extensions. You can either manually shutdown and restart the shell between sessions, or you can configure the shell to unload your extension quicker.

Upvotes: 3

Related Questions