Winston Fan created CB-6325:
-------------------------------
Summary: 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
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)