cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8053) Including a project reference in a plugin fails on Windows platform
Date Sat, 22 Nov 2014 11:05:34 GMT

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

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

Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-lib/pull/121


> Including a project reference in a plugin fails on Windows platform
> -------------------------------------------------------------------
>
>                 Key: CB-8053
>                 URL: https://issues.apache.org/jira/browse/CB-8053
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>    Affects Versions: 3.5.0
>         Environment: Windows
>            Reporter: Tim Barham
>              Labels: plugin, windows
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Create a plugin that supports the Windows platform. In plugin.xml, include a project
reference - for example:
>   <platform name="windows">
>     <framework src="src/MyWinRTAPI/MyWinRTAPI.vcxproj" custom="true" type="projectReference"/>
>   </platform>
> Add the plugin to a project, then add the Windows platform (or vice versa), results in
error "too many projects in solution" in cordova-lib/src/util/windows/jsproj.js. For example,
output from cordova platform add windows --verbose:
> Writing out cordova_plugins.js...
> Installing plugin "cpp.plugin" following successful platform add of windows
> Installing "cpp.plugin" for windows
> Install start for "cpp.plugin" on windows.
> Beginning processing of action stack for windows project...
> Parsing windows project files...
> creating jsproj from project at : %USERPROFILE%\Documents\Visual Studio 2013\Projects\WinRTCPP\WinRTCPP\bld\Debug\platforms\windows\CordovaApp.projitems
> windows8 framework install :: cpp.plugin
> adding project reference to %USERPROFILE%\Documents\Visual Studio 2013\Projects\WinRTCPP\WinRTCPP\bld\Debug\plugins\cpp.plugin\src\MyWinRTAPI\MyWinRTAPI.vcxproj
> Error during processing of action! Attempting to revert...
> Failed to install 'cpp.plugin':Error: Uh oh!
> too many projects in solution.
>     at Object.jsproj.addProjectReference (%APPDATA%\npm\node_modules\cordova\node_modules\cordova-lib\src\util\windows\jsproj.js:196:19)
>     at module.exports.framework.install (%APPDATA%\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\windows.js:116:30)
>     at Object.ActionStack.process (%APPDATA%\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:72:25)
>     at handleInstall (%APPDATA%\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:591:20)
>     at %APPDATA%\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:340:28
>     at _fulfilled (%APPDATA%\npm\node_modules\cordova\node_modules\q\q.js:798:54)
>     at self.promiseDispatch.done (%APPDATA%\npm\node_modules\cordova\node_modules\q\q.js:827:30)
>     at Promise.promise.promiseDispatch (%APPDATA%\npm\node_modules\cordova\node_modules\q\q.js:760:13)
>     at %APPDATA%\npm\node_modules\cordova\node_modules\q\q.js:526:49
>     at flush (%APPDATA%\npm\node_modules\cordova\node_modules\q\q.js:108:17)



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


Mime
View raw message