Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8880A200B9B for ; Wed, 12 Oct 2016 13:05:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8776A160AD4; Wed, 12 Oct 2016 11:05:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CDEEF160AEE for ; Wed, 12 Oct 2016 13:05:21 +0200 (CEST) Received: (qmail 90114 invoked by uid 500); 12 Oct 2016 11:05:21 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 90013 invoked by uid 99); 12 Oct 2016 11:05:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Oct 2016 11:05:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ACDAC2C4C75 for ; Wed, 12 Oct 2016 11:05:20 +0000 (UTC) Date: Wed, 12 Oct 2016 11:05:20 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11825) Windows dll file won't be copied as resource while adding custom plugin to a UWP project MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Oct 2016 11:05:22 -0000 [ https://issues.apache.org/jira/browse/CB-11825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15568409#comment-15568409 ] ASF subversion and git services commented on CB-11825: ------------------------------------------------------ Commit 1417b932c836c0fe21cca902e5098fa12e98fe82 in cordova-windows's branch refs/heads/master from [~daserge] [ https://git-wip-us.apache.org/repos/asf?p=cordova-windows.git;h=1417b93 ] CB-11825 Windows dll file won't be copied as resource while adding custom plugin to a UWP project Changing Package action from Content to None because Content does not work for Mobile - dlls were not being packaged into appx > 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