{"id":5163,"date":"2013-02-22T07:00:01","date_gmt":"2013-02-22T07:00:01","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2013\/02\/22\/now-that-version-4-of-the-net-framework-supports-in-process-side-by-side-runtimes-is-it-now-okay-to-write-shell-extensions-in-managed-code\/"},"modified":"2013-02-22T07:00:01","modified_gmt":"2013-02-22T07:00:01","slug":"now-that-version-4-of-the-net-framework-supports-in-process-side-by-side-runtimes-is-it-now-okay-to-write-shell-extensions-in-managed-code","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20130222-01\/?p=5163","title":{"rendered":"Now that version 4 of the .NET Framework supports in-process side-by-side runtimes, is it now okay to write shell extensions in managed code?"},"content":{"rendered":"<p>Many years ago, I wrote, &#8220;<a href=\"http:\/\/blogs.msdn.com\/b\/oldnewthing\/archive\/2006\/12\/18\/1317290.aspx\">Do not write in-process shell extensions in managed code<\/a>.&#8221; Since I originally wrote that article, version 4 of the .NET Framework was released, and one of the features of that version is that it supports in-process side-by-side runtimes. Does that mean that it&#8217;s now okay to write shell extensions in managed code?<\/p>\n<p> The answer is still no. <\/p>\n<p> The <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/dd758089(v=vs.85).aspx\"> Guidance for implementing in-process extensions<\/a> has been revised, and it continues the recommendation against writing shell extensions and Internet Explorer extensions (and other types of in-process extensions) in managed code, even if you&#8217;re using version 4 or higher. <\/p>\n<p> Although version 4 addresses the side-by-side issue, it is still the case that the .NET Framework is a high-impact runtime, and that there are various part of COM interop in the .NET Framework that are not suitable for use in an extension model designed around native code. <\/p>\n<p> Note that managed code remains acceptable for out-of-process extensions. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many years ago, I wrote, &#8220;Do not write in-process shell extensions in managed code.&#8221; Since I originally wrote that article, version 4 of the .NET Framework was released, and one of the features of that version is that it supports in-process side-by-side runtimes. Does that mean that it&#8217;s now okay to write shell extensions in [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-5163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Many years ago, I wrote, &#8220;Do not write in-process shell extensions in managed code.&#8221; Since I originally wrote that article, version 4 of the .NET Framework was released, and one of the features of that version is that it supports in-process side-by-side runtimes. Does that mean that it&#8217;s now okay to write shell extensions in [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/5163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=5163"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/5163\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=5163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=5163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=5163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}