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

ASF GitHub Bot commented on CB-11558:
-------------------------------------

Github user daserge commented on a diff in the pull request:

    https://github.com/apache/cordova-windows/pull/185#discussion_r73100316
  
    --- Diff: template/cordova/lib/PluginHandler.js ---
    @@ -105,7 +105,7 @@ var handlers = {
                 var type = obj.type;
     
                 if(type === 'projectReference') {
    -                project.removeProjectReference(path.join(plugin.dir, src), 
getTargetConditions(obj));
    +                project.removeProjectReference(path.join('..', '..', 
'plugins', plugin.id, src), getTargetConditions(obj));
    --- End diff --
    
    Regarding `targetDir` - this is [not 
supported](https://github.com/daserge/cordova-windows/blob/ee570036bc8faddc7d63e2830144c3d007d8e904/spec/unit/pluginHandler/windows.spec.js#L140)
 for projectReferences.
    Regarding hardcoded `../..` - using 
`path.join(path.relative(project.projectFolder, plugin.dir), src)` instead is 
causing some issues with tests related to project and plugin different drives 
location, investigating.


> Make windows plugin rm remove ProjectReference items
> ----------------------------------------------------
>
>                 Key: CB-11558
>                 URL: https://issues.apache.org/jira/browse/CB-11558
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>    Affects Versions: 4.4.2
>            Reporter: Sergey Shakhnazarov
>            Assignee: Sergey Shakhnazarov
>              Labels: triaged, windows
>             Fix For: 4.4.3
>
>
> {{cordova plugin add phonegap-plugin-barcodescanner}}
> CordovaApp.Windows.jsproj ->
> {noformat}
>     <ItemGroup>
>         <ProjectReference 
> Include="..\..\plugins\phonegap-plugin-barcodescanner\src\windows\lib\WinRTBarcodeReader.csproj"
>  />
>     </ItemGroup>
> {noformat}
> {{cordova plugin rm phonegap-plugin-barcodescanner}}
> {{ItemGroup}} not being removed.



--
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