Microsoft Band SDK Deploy Error: for ARM version: Unprocessed error code: 2148733978

When I try to deploy the application using the Microsoft Band SDK, I get the following error. The assembly configuration is RELEASE, and the target output is ARM. If the DEBUG config is used, it works.

Error : DEP6810 : MdilXapCompile.exe failed with error code 2001. 

I studied the MDILXapCompileLog and the following: compilation failed:

 CrossGen failed Error processing assembly [projectpath]...\obj\ARM\Release\MSIL\Microsoft.Band.dll Raw error code: 2148733978 

NOTE. The optional part of this situation is that if I only pack the application without deployment, I can download it to the device and work as expected.

Here are the sections of csproj - Debug / ARM:

 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'"> <DebugSymbols>true</DebugSymbols> <OutputPath>bin\ARM\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants> <NoWarn>;2008</NoWarn> <DebugType>full</DebugType> <PlatformTarget>ARM</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> <Prefer32Bit>false</Prefer32Bit> 

Release / ARM

 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'"> <OutputPath>bin\ARM\Release\</OutputPath> <DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants> <Optimize>true</Optimize> <NoWarn>;2008</NoWarn> <DebugType>pdbonly</DebugType> <PlatformTarget>ARM</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> <Prefer32Bit>false</Prefer32Bit> 

The only difference that I see is debugging symbols, can Microsoft.Band.dll not have public symbols? Shouldn't Visual Studio create them?

+5
source share
1 answer

I noticed that the solution still had the old Band SDK - Preview packages, even after upgrading to a newer SDK. I manually deleted all the nuget elements, forcedly updated the package, and the project now successfully deploys.

Here are the steps:

  • Close Visual Studio
  • Go to YourSolution / Packages /
  • Delete everything except packages.config
  • Reopen the solution in Visual Studio
  • Right-click on the solution and select " Manage Nuget Packages "
  • Click the Restore button, which will appear at the top of the dialog box.

Recover the solution and deploy it correctly

+1
source

All Articles