Windows 10 (UWP) manifest issue -


my uwp app has these package.manifest extensions content:

  <extensions>     <extension category="windows.activatableclass.inprocessserver">       <inprocessserver>         <path>mobilepos.win10.exe</path>         <activatableclass activatableclassid="pclutilitiesuniversel.companioninfo" threadingmodel="both" />         <activatableclass activatableclassid="pclutilitiesuniversel.devicemanager" threadingmodel="both" />       </inprocessserver>     </extension>     <extension category="windows.activatableclass.inprocessserver">       <inprocessserver>         <path>pclserviceuniversel.dll</path>         <activatableclass activatableclassid="pclserviceuniversel.transout" threadingmodel="both" />         <activatableclass activatableclassid="pclserviceuniversel.pclservice" threadingmodel="both" />         <activatableclass activatableclassid="pclserviceuniversel.transin" threadingmodel="both" />       </inprocessserver>     </extension>   </extensions> 

but when compile (tried rebuild in debug/release mode too) project, appxmanifest.xml generated has new "clrhost.dll" tag added automatically, generate error (in visual studio 2015):

error c00ce012: app manifest validation error: app manifest must valid per schema: line 63, column 8, reason: in base quanto definito nella dtd o nello schema, il contenuto dell'elemento "{http://schemas.microsoft.com/appx/manifest/foundation/windows10}inprocessserver" รจ incompleto. previsto: {http://schemas.microsoft.com/appx/manifest/foundation/windows10}activatableclass.

  <extensions>     <extension category="windows.activatableclass.inprocessserver">       <inprocessserver>         <path>mobilepos.exe</path>         <activatableclass activatableclassid="pclutilitiesuniversel.companioninfo" threadingmodel="both" />         <activatableclass activatableclassid="pclutilitiesuniversel.devicemanager" threadingmodel="both" />       </inprocessserver>     </extension>     <extension category="windows.activatableclass.inprocessserver">       <inprocessserver>         <path>pclserviceuniversel.dll</path>         <activatableclass activatableclassid="pclserviceuniversel.transout" threadingmodel="both" />         <activatableclass activatableclassid="pclserviceuniversel.pclservice" threadingmodel="both" />         <activatableclass activatableclassid="pclserviceuniversel.transin" threadingmodel="both" />       </inprocessserver>     </extension>     <extension category="windows.activatableclass.inprocessserver">       <inprocessserver>         <path>clrhost.dll</path>       </inprocessserver>     </extension>   </extensions> 

why during building tags "clrhost.dll" added? i'm wrong in manifest data?

thank suggestions, lewix

update seems adding these tags (only 1 dll) project build successfully

  <extensions>     <extension category="windows.activatableclass.inprocessserver">       <inprocessserver>         <path>pclserviceuniversel.dll</path>         <activatableclass activatableclassid="pclserviceuniversel.transout" threadingmodel="both" />         <activatableclass activatableclassid="pclserviceuniversel.pclservice" threadingmodel="both" />         <activatableclass activatableclassid="pclserviceuniversel.transin" threadingmodel="both" />       </inprocessserver>     </extension>   </extensions> 

why during building tags "clrhost.dll" added? i'm wrong in manifest data?

you can refer official document: side-loaded applications in detail. said: there 1 additional detail: declaring availablity of runtimeclass in side-loaded application's manifest.

and can follow instruction vs2015templatebrokeredcomponents configure manifest file.

no.9 step: update appxmanifest specify definition of brokered component using xml:

  <extensions>         <  extension category="windows.activatableclass.inprocessserver">           <inprocessserver>            <path>clrhost.dll</path>             <activatableclass activatableclassid="[fully qualified name of brokered component]" threadingmodel="mta">               <activatableclassattribute name="desktopapplicationpath" type="string" value="[path location of brokered components , proxystub]" />             </activatableclass>           </inprocessserver  >         </extension>       </extensions> 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -