[ https://issues.apache.org/jira/browse/CB-11825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15624578#comment-15624578 ] ASF GitHub Bot commented on CB-11825: ------------------------------------- GitHub user daserge opened a pull request: https://github.com/apache/cordova-docs/pull/658 CB-11825 Document VS quirk causing DEP2100 error on Windows Phone/Win… …dows Mobile ### Platforms affected Windows ### What does this PR do? Document VS quirk causing DEP2100 error on Windows Phone/Windows Mobile ### What testing has been done on this change? ### Checklist - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. - [ ] Added automated test coverage as appropriate for this change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/daserge/cordova-docs CB-11825 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-docs/pull/658.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #658 ---- commit a1342aa5e1b62e0e71d4595db15517b41878aae4 Author: daserge Date: 2016-11-01T06:57:06Z CB-11825 Document VS quirk causing DEP2100 error on Windows Phone/Windows Mobile ---- > Windows dll file won't be copied as resource while adding custom plugin to a UWP project > ---------------------------------------------------------------------------------------- > > Key: CB-11825 > URL: https://issues.apache.org/jira/browse/CB-11825 > Project: Apache Cordova > Issue Type: Bug > Components: Plugins, Windows > Affects Versions: 6.3.1 > Environment: Windows10 UWP projects > Reporter: Szabolcs Kubovics > Priority: Critical > Fix For: 6.3.2 > > > I have created a custom plugin which uses a Windows Runtime Component (e.g. "foo.winmd") file. In this winmd I have a referenced library class (e.g. "bar.dll"). > My plugin.xml looks like: > > ... > > > > With Cordova 6.2.0 the resource file will be copied to the target place and if I add the plugin to a cordova project the winmd file will find it. > With Cordova 6.3.1 the mentioned dll file won't be copied and I get FileNotFoundException (because it is not there). > "Exception calling native with command :: SayHelloToName :: sayHello ::exception=WinRTError: The system cannot find the file specified. > System.IO.FileNotFoundException: Could not load file or assembly 'SayHelloLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. > at Plugin.Test.TestPlugin.getName(String name) > cordova.js (993,13)" > I created a test package to easily reproduce this scenario. The test application can be downloaded from the external issue URL. > - SayHelloLib: the library which is referred in the winmd (output of PluginProject solution) > - PluginProject: contains the plugin proxy and the dll resource as cross referenced project (just for convenience) > - MyPlugin: the custom plugin, contains the plugin .js and .xml files and windows specific resources from PluginProject solution > - www: the index.html, it has to be copied to the www folder of the newly created Cordova project > Repro steps: > 1) build PluginProject project on x64 platform > 2) copy built files: > PluginProject\MyTestPlugin\windows\src\myPlugin_proxy.js -> MyPlugin\windows\src > PluginProject\Plugin.Test\Plugin.Test.UWP\bin\x64\Debug\Plugin.Test.winmd -> MyPlugin\windows\windows10\bin > PluginProject\Plugin.Test\Plugin.Test.UWP\bin\x64\Debug\SayHelloLib.dll -> MyPlugin\windows\windows10\bin > 3) cordova create Cordova631 cordova631.test.plugin Cordova631 > 4) cd Cordova631 > 5) cordova platform add windows > 6) cordova plugin add com.plugin.test.myPlugin --searchpath > 7) copy file: > www\index.html -> Cordova631\platforms\windows\www > 8) build the CordovaApp.sln on x64 platform > 9) start the application > 10) write something in the "Name" textbox > 11) click "Say hello" button -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org