{"id":2102,"date":"2020-08-27T09:08:56","date_gmt":"2020-08-27T07:08:56","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=2102"},"modified":"2020-08-27T09:08:56","modified_gmt":"2020-08-27T07:08:56","slug":"native-registration-free-com-dependency-for-net-5-application","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/2102","title":{"rendered":"Native registration free COM dependency for .NET 5 application"},"content":{"rendered":"\n<p><code>Isolated<\/code> property is supposed to enable referencing in-process COM servers as a registration free COM dependency, but something got broken on the way: Visual Studio 2019 Preview and .NET 5 produce applications that lose the link.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"504\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-2-800x504.png\" alt=\"\" class=\"wp-image-2103\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-2-800x504.png 800w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-2-320x202.png 320w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-2-768x484.png 768w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-2-1536x967.png 1536w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-2-600x378.png 600w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-2-1040x655.png 1040w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2020\/08\/image-2.png 1680w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>It is still preview so hopefully things get resolved timely. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The issue on GitHub: <a href=\"https:\/\/github.com\/dotnet\/runtime\/issues\/41309\">Single-File Executable Cannot Use Registration Free COM Interop in .NET 5-Preview 7<\/a><\/li><li>My <a href=\"https:\/\/github.com\/roman380\/ComDependency_41309\/\">reproducer<\/a> and my <a href=\"https:\/\/github.com\/roman380\/ComDependency_41309\/tree\/workaround\">workaround<\/a><\/li><\/ul>\n\n\n\n<p>The reproducer itself is a nice template for checking out C#\/C++ COM interop.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Isolated property is supposed to enable referencing in-process COM servers as a registration free COM dependency, but something got broken on the way: Visual Studio 2019 Preview and .NET 5 produce applications that lose the link. It is still preview so hopefully things get resolved timely. The issue on GitHub: Single-File Executable Cannot Use Registration&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/2102\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[607,608,38,95,496],"class_list":["post-2102","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-net-5","tag-c-2","tag-c","tag-com","tag-regfree"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/2102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=2102"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/2102\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=2102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=2102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=2102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}