Can you use the CLR for Shell Extensions?

'Guidance for Implementing In-Process Extensions' on MSDN says no.

The program manager for the CLR Managed/Native Interoperability Team at Microsoft, Jesse Kaplan, says yes ( in MSDN Magazine. This article was written before the MSDN page however.

Documentation on InProc SxS on MSDN ( says neither explicitly.

Due to conflicting statements in this area, I would recommend that for critical scenarios, use C or C++. However, as development of SharpShell continues, and others use and trial the library, I will keep this page updated when I find data that either leans towards or away from the Managed Shell Extension approach.

Microsoft All-In-One Code Framework

The rich set of code samples from Microsoft shows Managed Shell Extensions in C# and VB.

MSDN Blogs

On this blog post: the statement is made that shell extensions CAN be written with the CLR, however the question of whether that invalidates the statement by Microsoft in MSDN saying they recommend against it is not answered.

Raymond Chen
Raymond Chen says 'no, don't do it' in this post:

Last edited Mar 3, 2013 at 7:54 AM by dwmkerr, version 3


No comments yet.