Why can I not reference Bing Maps in my app?

Deadly 提交于 2019-12-06 01:11:04
Mayank

you need to install

Bing Maps SDK for Windows Store Apps

Search in Tools>Extension and Updates>Online>

Update

I only got error when I selected Any Cpu.

Have you checked the library type in the project settings to make sure it is not based on the 'Client Profile' framework type instead of the full framework. I've had errors like this with references and this ended up being the culprit.

Based on the error message you received: 'You are trying to install this package into a project that targets '.NETCore,Version=v4.5', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.'

It appears your project is in .net 4.5 and the particular SDK you are installing is not compatible with 4.5. Either get an SDK that is compatible, or change your project build to the appropriate supported version (I'd hazard a guess and say 4.0).

I got "The system cannot find the reference specified" when referencing Bing Maps SDK under Any CPU.

Changed target CPU to x86 and it worked.

One must check the checkbox.

So obvious, yet "invisible" to me - it seemed selecting the item should have been enough, and I paid no attention to/didn't "see" the checkbox. Perhaps one shouldn't be allowed to select "OK" with nothing selected/checked? And a hint telling you to check a checkbox?

Here's the answer:

http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/075ba866-fd8b-41d3-ab5e-a3c0812ab430

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!