{"id":5048,"date":"2014-03-30T18:23:36","date_gmt":"2014-03-30T18:23:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/automatic-conversion-of-winmd-to-dll-collection-of-common-programming-errors\/"},"modified":"2014-03-30T18:23:36","modified_gmt":"2014-03-30T18:23:36","slug":"automatic-conversion-of-winmd-to-dll-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/automatic-conversion-of-winmd-to-dll-collection-of-common-programming-errors\/","title":{"rendered":"Automatic conversion of winmd to DLL-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;d like to create a tool that accepts a .<code>winmd<\/code> file (Windows Runtime Component) and generates a C# DLL out of it (containing all the public types defined in the component).<\/p>\n<p>As far as I&#8217;ve learned, standard .NET Reflection APIs cannot work on .winmd files, and one must used the Metadata Unmanaged APIs to access that information.<\/p>\n<p>The question is &#8212; is it possible to construct a C# assembly out of the information that is retrieved from the Metadata API?<\/p>\n<p>Or better yet &#8212; is there a tool (like TLBIMP) that already does this job or something similar?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;d like to create a tool that accepts a .winmd file (Windows Runtime Component) and generates a C# DLL out of it (containing all the public types defined in the component). As far as I&#8217;ve learned, standard .NET Reflection APIs cannot work on .winmd files, and one must used the Metadata Unmanaged APIs to access [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5048","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5048"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5048\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}