Cordova app not building for Windows Phone 8 due to file-transfer plug-in -
i have cordova app runs on android, ios , windows phone 8 platforms. after making updates app required addition of additional plug-ins, unable perform build windows phone 8 due compilation error within version of org.apache.cordova.file-transfer plug-in. output when attempting build:
$ cordova build wp8 running command: cmd "/s /c ""d:\myphonegapproject\platforms\wp8\cordova\build.bat""" building project: d:/myphonegapproject/platforms/wp8/myphonegapapp.sln configuration : debug platform : cpu building projects in solution 1 @ time. enable parallel build, please add "/m" switch. plugins\org.apache.cordova.file-transfer\filetransfer.cs(445,26): error cs0426: type name 'fileentry' not exist in type 'system.io.file' [d:\myphonegapproject\platforms\wp8\myphonegapapp.csproj] plugins\org.apache.cordova.file-transfer\filetransfer.cs(445,49): error cs0117: 'system.io.file' not contain definition 'fileentry' [d:\myphonegapproject\platforms\wp8\myphonegapapp.csproj] plugins\org.apache.cordova.file-transfer\filetransfer.cs(452,96): error cs0117: 'system.io.file' not contain definition 'not_found_err' [d:\myphonegapproject\platforms\wp8\myphonegapapp.csproj] plugins\org.apache.cordova.file-transfer\filetransfer.cs(631,26): error cs0426: type name 'fileentry' not exist in type 'system.io.file' [d:\myphonegapproject\platforms\wp8\myphonegapapp.csproj] plugins\org.apache.cordova.file-transfer\filetransfer.cs(631,53): error cs0426: type name 'fileentry' not exist in type 'system.io.file' [d:\myphonegapproject\platforms\wp8\myphonegapapp.csproj] error: error code 1 command: c:\program files (x86)\msbuild\12.0\bin\msbuild args: d:/myphonegapproject/platforms/wp8/myphonegapapp.sln,/clp:nosummary;noitemandpropertylist;verbosity=minimal,/nologo,/p:configuration=debug,/p:platform=any cpu error building 1 of platforms: error: cmd: command failed exit code 2 may not have required environment or os build project error: cmd: command failed exit code 2 @ childprocess.whendone (c:\users\me\appdata\roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23) @ childprocess.emit (events.js:110:17) @ maybeclose (child_process.js:1015:16) @ process.childprocess._handle.onexit (child_process.js:1087:5) as error messages indicate, issue stems references in plug-in's native code apparently non-existent members of system.io.file class. these references can seen in plug-in source hosted on github. builds both android , ios work fine.
has else encountered issue, , if so, how did resolve it?
thanks in advance can provide.
i have resolved this. caused plug-in, org.apache.cordova.file, missing single file.cs source file plugins\org.apache.cordova.file directory. copied github solution , builds without problem.
Comments
Post a Comment