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

4 posts, 0 answers
  1. Simon
    Simon avatar
    52 posts
    Member since:
    Jun 2010

    Posted 21 Jun 2013 Link to this post

    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?
  2. Simon
    Simon avatar
    52 posts
    Member since:
    Jun 2010

    Posted 21 Jun 2013 Link to this post

    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)
  3. DevCraft banner
  4. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 21 Jun 2013 Link to this post

    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.
  5. Simon
    Simon avatar
    52 posts
    Member since:
    Jun 2010

    Posted 21 Jun 2013 Link to this post

    Thanks, nice to finally get points since most of my other posts and apps never earn t me any :D
Back to Top
DevCraft banner