简体   繁体   English

Windows Phone 8.1应用程序部署错误

[英]Windows Phone 8.1 Application Deployment Error

I added SQL database to my windows phone 8.1 application and now I cant deploy my app to my lumia 520 or any windows devices, I need Help! 我将SQL数据库添加到Windows Phone 8.1应用程序中,但是现在我无法将应用程序部署到lumia 520或任何Windows设备中,我需要帮助! The following is the error:- 错误如下:

Error 1 The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK "Microsoft.VCLibs, Version=12.0". 错误1引用的SDK“ Microsoft.VCLibs,版本= 12.0”不支持正在构建的项目“任何CPU”的处理器体系结构。 Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, ARM". 请考虑将您的项目的目标处理器体系结构(在Visual Studio中可以通过配置管理器完成)更改为SDK支持的一种体系结构:“ x86,ARM”。 MyProject.WindowsPhone I did try that but when I put it to ARM it gives me the following error 我确实尝试过MyProject.WindowsPhone,但是当我将其放入ARM时,出现以下错误

And When I change the config to ARM:- 当我将配置更改为ARM时:

Error 1- There was a mismatch between the processor architecture of the project being built "ARM" and the processor architecture, "x86", of the implementation file "C:\\Users\\john\\documents\\visual studio 2013\\Projects\\TheBeat\\packages\\Sqlite-Winrt.3.8.7.1\\lib\\wpa81\\SQLiteWinRT.dll" for "C:\\Users\\john\\documents\\visual studio 2013\\Projects\\TheBeat\\packages\\Sqlite-Winrt.3.8.7.1\\lib\\wpa81\\SQLiteWinRT.winmd". 错误1-正在构建的项目“ ARM”的处理器体系结构与实现文件“ C:\\ Users \\ john \\ documents \\ visual studio 2013 \\ Projects \\ TheBeat \\”的处理器体系结构“ x86”之间不匹配用于“ C:\\ Users \\ john \\ documents \\ visual studio 2013 \\ Projects \\ TheBeat \\ packages \\ Sqlite-Winrt.3.8.7.1 \\ lib \\ wpa81的packages \\ Sqlite-Winrt.3.8.7.1 \\ lib \\ wpa81 \\ SQLiteWinRT.dll \\ SQLiteWinRT.winmd”。 This mismatch may cause runtime failures. 这种不匹配可能会导致运行时失败。 Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and implementation file, or choose a winmd file with an implementation file that has a processor architecture which matches the targeted processor architecture of your project.MyProject.WindowsPhone 请考虑通过Configuration Manager更改项目的目标处理器体系结构,以使项目和实现文件之间的处理器体系结构保持一致,或者选择winmd文件和具有与您的目标处理器体系结构相匹配的处理器体系结构的实现文件project.MyProject.WindowsPhone

And When the Config is x86 当Config是x86时

Error : DEP3311 : Unable to deploy an x86 package to a Windows Phone device. 错误:DEP3311:无法将x86程序包部署到Windows Phone设备。 Change the build configuration to ARM or Neutral or change the Debug Target to an emulator.TheBeat.WindowsPhone 将构建配置更改为ARM或Neutral或将调试目标更改为仿真器.​​TheBeat.WindowsPhone

I solved my query, If such an error occurs make sure the configuration(Any CPU, x86, x64, ARM) of the application and the configuration of the References are the same. 我解决了我的查询,如果发生此类错误,请确保应用程序的配置(任何CPU,x86,x64,ARM)和“引用”的配置相同。 If not sure how to do that make sure while adding the references the application is in the Configuration you want it in. 如果不确定该怎么做,请确保在添加引用时该应用程序位于您想要的配置中。

make sure the configuration(Any CPU, x86, x64, ARM) of the application and the configuration of the References are the same. 确保应用程序的配置(任何CPU,x86,x64,ARM)和“引用”的配置相同。 If not sure how to do that make sure while adding the references the application is in the Configuration you want it in. 如果不确定该怎么做,请确保在添加引用时该应用程序位于您想要的配置中。

in my case I have Error: Could not find SDK “Microsoft.VCLibs, version=12.0”. 就我而言,我有一个错误:找不到SDK“ Microsoft.VCLibs,版本= 12.0”。 I just copy folder “c:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\ExtensionSDKs\\Microsoft.VCLibs” to “c:\\Program Files (x86)\\Microsoft SDKs\\WindowsPhoneApp\\v8.1\\ExtensionSDKs\\Microsoft.VCLibs” and all ok. 我只是将文件夹“ c:\\ Program Files(x86)\\ Microsoft SDKs \\ Windows \\ v8.1 \\ ExtensionSDKs \\ Microsoft.VCLibs”复制到“ c:\\ Program Files(x86)\\ Microsoft SDKs \\ WindowsPhoneApp \\ v8.1 \\ ExtensionSDKs \\ Microsoft.VCLibs”,一切正常。 ps I'm write this comment for googler's, because this page in top position on this problem. ps我正在为Googler撰写此评论,因为此页面在此问题上排名第一。 Thanks. 谢谢。 pss Reinstall VS/Repair VS/Update VS to v3/WP8.1 SDK's - don't help. pss重新安装VS /修复VS /将VS更新到v3 / WP8.1 SDK-无济于事。 Only help copying folder. 仅帮助复制文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM