This is a migrated thread and some comments may be shown as answers.

Build for WP8 device Fails - Cannot find Telerik.Windows.Cloud when building for ARM

3 Answers 59 Views
CloudDataSync
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Simon
Top achievements
Rank 1
Simon asked on 21 Jun 2013, 01:17 PM
Went to try and test my app on a device but I cannot even build it.

When I switch to device build mode (which for WP8 is ARM) the compiler tells me the ".Cloud" namespace is unknown.

Any ideas?

3 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 21 Jun 2013, 01:27 PM
I think I found the answer and it appears there is a bug in the project template.

There are two references to x86 for the cloud DLL and only one for the synchronisation framework (checked the deploy folder and the ARM versions do exist:

    <Reference Include="Telerik.Windows.Controls.Cloud" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Telerik.Windows.Controls.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Everlive.Sdk" Condition=" '$(Platform)' == 'ARM' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\ARM\Telerik.Everlive.Sdk.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Everlive.Sdk" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Telerik.Everlive.Sdk.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Core.Cloud" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Telerik.Windows.Core.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Data.Cloud" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Telerik.Windows.Synchronization.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Sqlite" Condition=" '$(Platform)' == 'ARM' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\ARM\Sqlite.winmd</HintPath>
    </Reference>
    <Reference Include="Sqlite" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Sqlite.winmd</HintPath>
    </Reference>
So I just need to update the references in the .csproj file to select the ARM varients as follows

    <Reference Include="Telerik.Windows.Core.Cloud" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Telerik.Windows.Core.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Data.Cloud" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Telerik.Windows.Synchronization.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Cloud" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Telerik.Windows.Controls.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Core.Cloud" Condition=" '$(Platform)' == 'ARM' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\ARM\Telerik.Windows.Core.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Data.Cloud" Condition=" '$(Platform)' == 'ARM' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\ARM\Telerik.Windows.Synchronization.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Cloud" Condition=" '$(Platform)' == 'ARM' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\ARM\Telerik.Windows.Controls.Cloud.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Everlive.Sdk" Condition=" '$(Platform)' == 'ARM' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\ARM\Telerik.Everlive.Sdk.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Everlive.Sdk" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Telerik.Everlive.Sdk.dll</HintPath>
    </Reference>
    <Reference Include="Sqlite" Condition=" '$(Platform)' == 'ARM' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\ARM\Sqlite.winmd</HintPath>
    </Reference>
    <Reference Include="Sqlite" Condition=" '$(Platform)' == 'x86' ">
      <HintPath>$(TelerikWP8Dir)\Binaries\WindowsPhone\x86\Sqlite.winmd</HintPath>
    </Reference>

Just tested and all working now (phew)
0
Deyan
Telerik team
answered on 21 Jun 2013, 01:40 PM
Hi Simon,

Thanks for reporting this.

We will be updating the project template right away.

I have updated your account with 1500 Telerik points for your assistance.

Do not hesitate to get back to us as soon as you have further feedback or any questions.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Simon
Top achievements
Rank 1
answered on 21 Jun 2013, 02:30 PM
Thanks, nice to finally get points since most of my other posts and apps never earn t me any :D
Tags
CloudDataSync
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or