How to package a Windows Runtime component for distribution? -
i have built winrt component (.winmd) use both javascript , xaml windows store apps. when including , referencing loose .winmd file output in javascript client, see build warning:
microsoft.appxpackage.targets(808,9): warning appx1707: no implementation file provided .winmd file 'myruntimecomponent.winmd'. generate registration information in app manifest, specify 'implementation' metadata on .winmd reference item in project file.
i can't find documentation on error or how include implementation metadata.
when running javascript client, exception thrown when class method exported .winmd called:
0x80040154 - javascript runtime error: class not registered
note referencing loose .winmd file in client application project, rather referencing visual studio project builds .winmd. use case distributing .winmd output, not full source .winmd component - source distribution not option.
also note when windows runtime component referenced as project reference, javascript client builds , runs correctly. c# xaml client runs correctly either project reference or reference loose .winmd.
it seems if registration information not being generated in client application build when loose .winmd referenced.
how can build , distribute loose windows runtime component use both javascript , managed clients?
a winrt component built c# or vb produces .winmd contains both metadata , implementation. component built c++ provides separate .winmd , .dll files, , dll contains details register component.
apparently, warning indicates, need edit project file following point dll:
<reference include="component"> <hintpath>component.winmd</hintpath> <iswinmdfile>true</iswinmdfile> <implementation>component.dll</implementation> </reference>
Comments
Post a Comment