将worklight 6.1项目迁移到Mobile First 7.1 使用IBM MobileFirst Platform Studio 7.1.0.00-20160801-2314
通过提供正确的服务器路径和上下文路径,构建应用程序以使远程Mobile First服务器工作。
使用6.1的Windows构建工作正常,因为迁移的Windows构建卡在Splash屏幕上。等待超过10分钟但没有加载着陆页。
交叉检查wlclient.properties文件的内容。发现其内容生成正确。
从Visual Studio
在设备上部署应用程序时查找下面的调试日志'TaskHost.exe' (CoreCLR: DefaultDomain): Loaded 'C:\windows\system32\mscorlib.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.RuntimeHost.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Net.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Xml.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\Data\Programs\{92FAFB73-DACB-497F-B1B2-7266DCF1FC5D}\Install\RBL_iBank.DLL'. Symbols loaded.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\Data\Programs\{92FAFB73-DACB-497F-B1B2-7266DCF1FC5D}\Install\WLWPNativeLib.DLL'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\Microsoft.Phone.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\Microsoft.Phone.Interop.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Xml.Linq.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Runtime.Serialization.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\WinMetadata\Windows.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\Data\Programs\{92FAFB73-DACB-497F-B1B2-7266DCF1FC5D}\Install\WPCordovaClassLib.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Core.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Adding feature.value=PushPlugin
Adding feature.value=Battery
Adding feature.value=Camera
Adding feature.value=Contacts
Adding feature.value=Device
Adding feature.value=Accelerometer
Adding feature.value=Compass
Adding feature.value=Notification
Adding feature.value=File
Adding feature.value=FileTransfer
Adding feature.value=Globalization
Adding feature.value=InAppBrowser
Adding feature.value=Media
Adding feature.value=NetworkStatus
Adding feature.value=SplashScreen
Adding feature.value=Vibration
Adding feature.value=DeviceAuth
Adding feature.value=Push
Adding feature.value=WifiPlugin
Adding feature.value=WLApplicationBar
Adding feature.value=WLBusyIndicator
Adding feature.value=WLCustomDialog
Adding feature.value=WLOpenURL
Adding feature.value=WLGeolocationPlugin
Adding feature.value=WLNativePage
Adding feature.value=WLDirectUpdatePlugin
Adding feature.value=DeviceInfo
Adding feature.value=Badge
Adding feature.value=StoragePlugin
Adding feature.value=WLNativeXHRPlugin
Adding feature.value=WLSplashScreen
Adding feature.value=SecurityPlugin
Adding feature.value=WLApp
Adding feature.value=StatusBar
Adding feature.value=WLAuthorizationManagerPlugin
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built without symbols.
Updating IsolatedStorage for APP:DeviceID :: ac863433-291b-45e8-a19a-22f803e652dc
CordovaBrowser_LoadCompleted
deviceready has not fired after 5 seconds.
'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Device.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Channel not fired: onPluginsReady
Channel not fired: onCordovaReady
遵循以下迁移步骤
1) Exported 6.1 Hybrid project as Archive file
2) Imported 6.1 project in MobileFirst Platform Studio 7.1.0.00-20160801-2314
3) Refresh and clean project was done
4) Deleted all files in bin folder and redeployed adapter and app.
5) Checked all apps in simulator and found all are working fine.
6) Enabled Build application work with different mobile first server and entered correct values to Server and context path
7) Repeated steps 3 and 4
8) All deployable files generated in bin folder given for deployment team to deploy on Mobile First server
10) Got feedback from deployment team like wlapp file deployment success with one warning "It is recommended to use extended app authenticity"
11) Copied windowsphone8 folder from workspace to Windows machine. Opened project in Visual Studio.
12) Cross checked wlclient.properties file contents found correct.
13) Clean solution and build on device
14) Found app struct in splash screen. Waited for more then 10 minutes. Clean solution and re-deploy on device on several times on Visual Studio but no use. Restarted Visual Studio and re-opened project on Visaul Studio still found no use.
注意:迁移的Android Build在远程服务器的设备上运行良好。