Lan*_*thy 5 winrt-xaml windows-phone-8.1 microsoft-band
尝试使用Microsoft Band SDK部署应用程序时出现以下错误.构建配置是RELEASE,目标输出是ARM.如果使用DEBUG配置,它可以工作.
Error : DEP6810 : MdilXapCompile.exe failed with error code 2001.
Run Code Online (Sandbox Code Playgroud)
我检查了MDILXapCompileLog,以下是编译失败的地方:
CrossGen failed
Error processing assembly [projectpath]...\obj\ARM\Release\MSIL\Microsoft.Band.dll
Raw error code: 2148733978
Run Code Online (Sandbox Code Playgroud)
注意:关于这种情况的额外奇怪的部分是,如果我只是在没有部署的情况下打包应用程序,我可以将其侧载到设备并且它按预期工作.
以下是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>
Run Code Online (Sandbox Code Playgroud)
发布/ 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>
Run Code Online (Sandbox Code Playgroud)
我看到的唯一区别是调试符号,Microsoft.Band.dll可能没有公共符号吗?是不是Visual Studio应该创建它们?
我注意到即使更新到较新的 SDK 后,该解决方案仍然具有旧的Band SDK - Preview包。我手动删除了所有 nuget 项目,强制刷新包,项目现在已成功部署。
步骤如下:
重建解决方案并且它应该正确部署
| 归档时间: |
|
| 查看次数: |
1472 次 |
| 最近记录: |