我准备将我现有的Windows 8.1通用应用程序及其便携式项目更新到VS2015。但它失败并出现以下错误
"Error : DEP6810 : MdilXapCompile.exe failed with error code 1004. See log file 'C:\xxx\xxx.WindowsPhone\obj\ARM\Debug\MDIL\MDILXapCompileLog.txt' for more details"
日志文件内容
Error: Compile filter argument specified non-existent file: C:\xxx\xxx\xxx.WindowsPhone\obj\ARM\Debug\MSIL\PhoneLibrary\Microsoft.SharePoint.Client.Portable.dll
Invalid argument
Microsoft (R) MDIL XAP Compiler - Version 4.0.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
Usage: MDILXAPCompile /In:<InputPath> /Out:<OutputPath> /Config:<ConfigPath> [/CompileFilter:<Assembly Path>;<Assembly Path>] [/Timeout:<Timeout>] [/Log:<LogPath>] [/AppX]
/In - Path to directory containing files to process
/Out - Path to directory to place processed files in
/Config - Path to configuration file
/CompileFilter - Optional restrictive list of assembly files in InputPath,
separated by semi-colons, to be compiled.
/Timeout - Optional timeout in milliseconds before killing the Crossgen process. Overrides config file timeout value. Use -1 for infinite timeout, 0 for application default (2 hours).
/Log - Optional path to log file
/AppX - Specifies that assemblies correspond to an AppX package
Relative paths are relative to this executable's directory.
我只在调试项目时才会收到此错误,但是当我生成包并将其部署到设备时,它会正常工作。
非常感谢答案。
答案 0 :(得分:0)
我解决了这个问题。但可能不是直接的方式。这很奇怪。
我在应用程序内部的文件夹(名为PhoneLibrary)中引用了我的dll。根据日志文件位置“C:\ xxx \ xxx \ xxx.WindowsPhone \ obj \ ARM \ Debug \ MSIL \ PhoneLibrary \ Microsoft.SharePoint.Client.Portable.dll”,它无法创建文件夹。
所以我刚刚在该位置创建了文件夹,并将我的dll复制到该文件夹中并且运行良好。