[AC-4382] Windows Phone : Module
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2016-09-06T05:50:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | n/a |
Reporter | Neha |
Assignee | Shak Hossain |
Created | 2016-08-24T11:14:44.000+0000 |
Updated | 2016-09-07T04:58:17.000+0000 |
Description
Hi,
I have created windows module for titanium and added that to Titanium/modules/windows folder and have updated my tiapp.xml to include the module as well.
http://docs.appcelerator.com/platform/latest/#!/guide/Windows_Module_Quick_Start
When I build my app, it tries to find the module dll/lib files in win10 folder where as my module has phone and store folder.
How can I resolve the issue?
Console Error :
[WARN] C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3106: Assembly strong name "
C:/ProgramData/Application Data/Titanium/modules/windows/com.windows.module/1.0.0/win10/arm/ComWindowsModule.winmd" is either a path whi
ch could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that
need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [C:\Users\Neha\.t
itanium\vsbuild\NYCDOH_WIN\win10.ARM\Native\TitaniumWindows_Native.vcxproj]
[ERROR] LINK : fatal error LNK1104: cannot open file 'C:\ProgramData\Application Data\Titanium\modules\windows\com.windows.module\1.0.0\
win10\arm\ComWindowsModule.lib' [C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\Native\TitaniumWindows_Native.vcxproj]
[WARN] "C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\StopODNYC.sln" (default target) (1) ->
"C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\StopODNYC.vcxproj.metaproj" (default target) (2) ->
"C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\Native\TitaniumWindows_Native.vcxproj.metaproj" (default target) (3) ->
"C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\Native\TitaniumWindows_Native.vcxproj" (default target) (5) ->
(ResolveAssemblyReferences target) ->
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3106: Assembly strong name "C:/Pro
gramData/Application Data/Titanium/modules/windows/com.windows.module/1.0.0/win10/arm/ComWindowsModule.winmd" is either a path which cou
ld not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need t
o be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). [C:\Users\Neha\.titaniu
m\vsbuild\NYCDOH_WIN\win10.ARM\Native\TitaniumWindows_Native.vcxproj]
[ERROR] "C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\StopODNYC.sln" (default target) (1) ->
"C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\StopODNYC.vcxproj.metaproj" (default target) (2) ->
"C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\Native\TitaniumWindows_Native.vcxproj.metaproj" (default target) (3) ->
"C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\Native\TitaniumWindows_Native.vcxproj" (default target) (5) ->
(Link target) ->
LINK : fatal error LNK1104: cannot open file 'C:\ProgramData\Application Data\Titanium\modules\windows\com.windows.module\1.0.0\win10\
arm\ComWindowsModule.lib' [C:\Users\Neha\.titanium\vsbuild\NYCDOH_WIN\win10.ARM\Native\TitaniumWindows_Native.vcxproj]
1 Warning(s)
1 Error(s)
[~neha], Can you please send us our sample project? We will investigate Thanks
Hi, After analyzing titanium files, I was able to narrow down the cause of win10 folder not being generated. Please have a look at below code : File - Titanium\mobilesdk\win32\5.4.0.v20160601151241\windows\templates\module\default\hooks\windows-module.js Code - function isWindows10() { return (os.release().indexOf('10.0') == 0); } The value of os.release() on my windows 10 system for windows 10 sdk gives value "6.3.2". My build command for the module has --wp-sdk 10.0.0 . When running the application with --wp-sdk 10.0.0 generates win10 folder , but the module does not generate the folder. Can you please have a look. Thanks