You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2014/07/08 14:14:04 UTC

[jira] [Commented] (CB-6325) CordovaDeploy project references to different versions of Microsoft.SmartDevice

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

Sergey Grebnov commented on CB-6325:
------------------------------------

This issue was fixed by the following commit, resolving..
https://github.com/apache/cordova-wp8/commit/36bb23a2ef3c829593ecdcd670d68dd4b382ffd4

> CordovaDeploy project references to different versions of Microsoft.SmartDevice
> -------------------------------------------------------------------------------
>
>                 Key: CB-6325
>                 URL: https://issues.apache.org/jira/browse/CB-6325
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 3.4.0
>         Environment: Windows 8.1 Pro, Visual Studio 2012
>            Reporter: Winston Fan
>            Assignee: Jesse MacFadyen
>              Labels: build, easyfix
>
> when running the command : cordova run --device, a warning appears
> ----------------------------Warning message starts----------------------------------
> Consider app.config remapping of assembly "Microsoft.SmartDevice.Connectivity,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "10.0.0.0" [C:\W
> INDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.SmartDevice.Connectivity\v4.0_1
> 0.0.0.0__b03f5f7f11d50a3a\Microsoft.SmartDevice.Connectivity.dll] to Version "11
> .0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Smartdevice.Connec
> tivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connectivity.dll] t
> o solve conflict and get rid of warning.
> ----------------------------Warning message ends----------------------------------
> Here is the full information for the log of executing that command.
> -------------------------------------Log Starts--------------------------------------
> F:\Workplace\MySC\cordova>cordova run --device
> Running command: cmd args=["/c","F:\\Workplace\\MySC\\cordova\\platforms\\wp8\\c
> ordova\\run","--device"]
> WARNING: [ --debug | --release | --nobuild ] not specified, defaulting to --debu
> g.
> Cleaning cordova project...
> Building Cordova-WP8 Project:
> Configuration : Debug
> Directory : F:\Workplace\MySC\cordova\platforms\wp8
> Building the projects in this solution one at a time. To enable parallel build,
> please add the "/m" switch.
> MySC -> F:\Workplace\MySC\cordova\platforms\wp8\Bin\Debug\com.test.MySC.dll
> Begin application manifest generation
> Application manifest generation completed successfully
> Begin Xap packaging
> Creating file CordovaAppProj_Debug_AnyCPU.xap
> BUILD SUCCESS.
> CordovaDeploy.exe not found, attempting to build CordovaDeploy.exe...
> Microsoft (R) Build Engine version 4.0.30319.33440
> [Microsoft .NET Framework, version 4.0.30319.34011]
> Copyright (C) Microsoft Corporation. All rights reserved.
> Building the projects in this solution one at a time. To enable parallel build,
> please add the "/m" switch.
> Build started 3/21/2014 11:13:41 AM.
> Project "F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\Cordo
> vaDeploy.sln" on node 1 (default targets).
> ValidateSolutionConfiguration:
> Building solution configuration "Debug|x86".
> Project "F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\Cordo
> vaDeploy.sln" (1) is building "F:\Workplace\MySC\cordova\platforms\wp8\cordova\l
> ib\CordovaDeploy\CordovaDeploy\CordovaDeploy.csproj" (2) on node 1 (default targ
> ets).
> PrepareForBuild:
> Creating directory "bin\Debug\".
> Creating directory "obj\x86\Debug\".
> ResolveAssemblyReferences:
> Consider app.config remapping of assembly "Microsoft.SmartDevice.Connectivity,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "10.0.0.0" [C:\W
> INDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.SmartDevice.Connectivity\v4.0_1
> 0.0.0.0__b03f5f7f11d50a3a\Microsoft.SmartDevice.Connectivity.dll] to Version "11
> .0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Smartdevice.Connec
> tivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connectivity.dll] t
> o solve conflict and get rid of warning.
> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5):
> warning MSB3247: Found conflicts between different versions of the same dependen
> t assembly. [F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\C
> ordovaDeploy\CordovaDeploy.csproj]
> GenerateTargetFrameworkMonikerAttribute:
> Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output fil
> es are up-to-date with respect to the input files.
> CoreCompile:
> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1
> 702 /nostdlib+ /platform:x86 /errorreport:prompt /warn:4 /defineEBUG;TRACE /ma
> in:CordovaDeploy.DeployTool /highentropyva+ /reference:"C:\Program Files (x86)\R
> eference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll"
> /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Smartdevice.Con
> nectivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connectivity.dll
> /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Smartdevice.Con
> nectivity.Interface\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connec
> tivity.Interface.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Micro
> soft.Smartdevice.MultiTargeting.Connectivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Mic
> rosoft.Smartdevice.MultiTargeting.Connectivity.dll /reference:"C:\Program Files
> (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll"
> /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NET
> Framework\v4.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Ass
> emblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.DataSetExtensions.dll
> " /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
> ETFramework\v4.5\System.Data.dll" /reference:"C:\Program Files (x86)\Reference A
> ssemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" /reference:"C:\Prog
> ram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Syst
> em.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Fr
> amework\.NETFramework\v4.5\System.Xml.Linq.dll" /debug+ /debug:full /filealign:5
> 12 /optimize- /out:obj\x86\Debug\CordovaDeploy.exe /subsystemversion:6.00 /targe
> t:exe /utf8output Program.cs Properties\AssemblyInfo.cs "C:\Users\franv_000\AppD
> ata\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs"
> Program.cs(284,46): warning CS0168: The variable 'ex' is declared but never used
> [F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeplo
> y\CordovaDeploy.csproj]
> _CopyAppConfigFile:
> Copying file from "app.config" to "bin\Debug\CordovaDeploy.exe.config".
> CopyFilesToOutputDirectory:
> Copying file from "obj\x86\Debug\CordovaDeploy.exe" to "bin\Debug\CordovaDeplo
> y.exe".
> CordovaDeploy -> F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDe
> ploy\CordovaDeploy\bin\Debug\CordovaDeploy.exe
> Copying file from "obj\x86\Debug\CordovaDeploy.pdb" to "bin\Debug\CordovaDeplo
> y.pdb".
> Done Building Project "F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\Cordo
> vaDeploy\CordovaDeploy\CordovaDeploy.csproj" (default targets).
> Done Building Project "F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\Cordo
> vaDeploy\CordovaDeploy.sln" (default targets).
> Build succeeded.
> "F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy
> .sln" (default target) (1) ->
> "F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy
> \CordovaDeploy.csproj" (default target) (2) ->
> (ResolveAssemblyReferences target) ->
> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5)
> : warning MSB3247: Found conflicts between different versions of the same depend
> ent assembly. [F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy
> \CordovaDeploy\CordovaDeploy.csproj]
> "F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy
> .sln" (default target) (1) ->
> "F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy
> \CordovaDeploy.csproj" (default target) (2) ->
> (CoreCompile target) ->
> Program.cs(284,46): warning CS0168: The variable 'ex' is declared but never us
> ed [F:\Workplace\MySC\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDep
> loy\CordovaDeploy.csproj]
> 2 Warning(s)
> 0 Error(s)
> Time Elapsed 00:00:00.47
> CordovaDeploy.exe compiled, SUCCESS.
> Deploying to device ...
> Connecting to device :: 30F105C9-681E-420b-A277-7C086EAD8A4E : Device
> Installing app on Device
> Launching app on Device
> EXIT
> -------------------------------------Log ends--------------------------------------
> I think I found the problem.
> The problem should be in CordovaDeploy code:
> When running command: cordova run --device, it creates a project called CordovaDeploy, but this project is a Visual Studio 2010 project which, I guess, is the reason why the project links to the old version of v4.0_10.0.0.0_xxxx\Microsoft.SmartDevice.xxx and here is the warning message says:
> Version "10.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.SmartDevice.Connectivity\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.SmartDevice.Connectivity.dll]
> Content of CordovaDeploy.sln :
> Code:
> Microsoft Visual Studio Solution File, Format Version 11.00
> # Visual Studio 2010
> Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CordovaDeploy", "CordovaDeploy\CordovaDeploy.csproj", "{E752165B-AF59-4FF0-8601-A2A69FE09E0E}"
> EndProject
> Global
> 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
> 		Debug|x86 = Debug|x86
> 		Release|x86 = Release|x86
> 	EndGlobalSection
> 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
> 		{E752165B-AF59-4FF0-8601-A2A69FE09E0E}.Debug|x86.ActiveCfg = Debug|x86
> 		{E752165B-AF59-4FF0-8601-A2A69FE09E0E}.Debug|x86.Build.0 = Debug|x86
> 		{E752165B-AF59-4FF0-8601-A2A69FE09E0E}.Release|x86.ActiveCfg = Release|x86
> 		{E752165B-AF59-4FF0-8601-A2A69FE09E0E}.Release|x86.Build.0 = Release|x86
> 	EndGlobalSection
> 	GlobalSection(SolutionProperties) = preSolution
> 		HideSolutionNode = FALSE
> 	EndGlobalSection
> EndGlobal
> But inside its CordovaDeploy.csproj, I spotted this fragment of code:
> Code:
> <Reference Include="Microsoft.Smartdevice.Connectivity, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
>       <SpecificVersion>False</SpecificVersion>
>       <HintPath>..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SmartDevice.Connectivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connectivity.dll</HintPath>
>     </Reference>
>     <Reference Include="Microsoft.Smartdevice.Connectivity.Interface, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
>       <SpecificVersion>False</SpecificVersion>
>       <HintPath>..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SmartDevice.Connectivity.Interface\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connectivity.Interface.dll</HintPath>
>     </Reference>
>     <Reference Include="Microsoft.Smartdevice.MultiTargeting.Connectivity, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
>       <SpecificVersion>False</SpecificVersion>
>       <HintPath>..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SmartDevice.MultiTargeting.Connectivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.MultiTargeting.Connectivity.dll</HintPath>
>     </Reference>
> It explicitly specifies to reference to the v4.0_11.0.0.0__xxxx\Microsoft.Smartdevice.xxxx
> So if someone could upgrade the CordovaDeploy project to Visual Studio 2012, the problem might be solved.
> To see more information, please visit the post at :
> http://www.sencha.com/forum/showthread.php?282942-App-runs-but-stuck-at-the-loading-screen(3-dots-screen)&p=1035449#post1035449
> #15 and #16 



--
This message was sent by Atlassian JIRA
(v6.2#6252)