[ 
https://issues.apache.org/jira/browse/CB-10604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15147048#comment-15147048
 ] 

Marco Biasini commented on CB-10604:
------------------------------------

Hi,

cordova-window@master contains a change to how the resource-file element is 
interpreted. The resource-files are no longer copied at plugin install time. 
Rather, the files are referenced in the original plugin location. It's possible 
that this also fixes the issue for you

Given this resource-file element:

           <resource-file device-target="phone" src="wpa81\$(Platform)\My.dll" 
target="My.dll" versions="8.1"/>

The generated Content element will look like this:


    <ItemGroup>
        <Content 
Include="$(ProjectDir)..\..\plugins\com.example.your.plugin\wpa81\$(Platform)\My.dll">
            <Link>My.dll</Link>
            <CopyToOutputDirectory>Always</CopyToOutputDirectory>
        </Content>
    </ItemGroup>

Does this solve the problem for you? 

Best,
Marco



> resource-file tag in plugin.xml for cordova-windows generates incorrect link
> ----------------------------------------------------------------------------
>
>                 Key: CB-10604
>                 URL: https://issues.apache.org/jira/browse/CB-10604
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>            Reporter: James Dubee
>
> When using the resource-file tag in plugin.xml for cordova-windows, the link 
> tag generated in the .jsproj has the wrong value.
> plugin.xml example:
>         <resource-file src="src/windows/buildtarget/ARM/msvcr110.dll" 
> device-target="win"  
> target="plugins/cordova-plugin-mfp-jsonstore/win/ARM/msvcr110.dll" 
> custom="true" arch="ARM" />
> .jsproj file content:
> <ItemGroup>
>         <Content Condition="'$(Platform)'=='ARM'" 
> Include="plugins/cordova-plugin-mfp-jsonstore/win/ARM/sqlite3.dll">
>             
> <Link>plugins/cordova-plugin-mfp-jsonstore/win/ARM/sqlite3.dll</Link>
>             <CopyToOutputDirectory>Always</CopyToOutputDirectory>
>         </Content>
>     </ItemGroup> 
> Wanted .jsproj content:
> <ItemGroup>
>         <Content Condition="'$(Platform)'=='ARM'" 
> Include="plugins/cordova-plugin-mfp-jsonstore/win/ARM/sqlite3.dll">
>             <Link>sqlite3.dll</Link>
>             <CopyToOutputDirectory>Always</CopyToOutputDirectory>
>         </Content>
>     </ItemGroup> 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to