Testing / debugging Shell Extension & Regasm & explorer.exe

I have successfully created a shell extension (more precisely, a context menu handler) in C # using .NET 4.0. I used Regasm to register the extension, and again Regasm to unregister the extension. The whole process works wonderfully.

I have one problem: explorer.exe will not let go of my DLL after testing. I cannot remove it, and I cannot make another assembly without a VS complaint. The only thing I could do to release the DLL was restart restart explorer.exe. So my question is: how can I check how I am going without going through each process?

I am also grateful for the tips to speed up the testing / debugging process.

Edit: I found the Register for COM Interop parameter in my project properties. This speeds up the debugging process, but I still have the explorer.exe problem.

Edit 2: I ended up creating a batch file to kill and then restart explorer.exe and use it in my pre-build. However, even though I used the run command to run tasks in the background, Visual Studio freezes endlessly during the build process. I ended up using this tool http://www.commandline.co.uk/cmdow/ to fully run the commands in the background.

+3
source share
2 answers

, explorer.exe -. , , "" , Visual Studio . http://www.commandline.co.uk/cmdow/, .

+1

: Unlocker, DLL. . , Unlocker , .

0

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


All Articles