Compilation error with sqlite and winrt

I just opened the csharp version of the SDK geolocation sample, and I would like to make a simple change: I would like the background task to save the coordinates in sqlite db.

To do this, I added the Microsoft Visual C++ Runtime Package, the SQLite for Windows Runtime, the sqlite-net library via codeplex, and switched the target Platform from any cpu to x64 .

Trying to compile, I get this error

 Windows Runtime type 'Windows.Foundation.Point' was found in multiple referenced winmd files. Please remove either 'C:\Program Files (x86)\ Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.VCLibs\11.0\References \CommonConfiguration\neutral\platform.winmd' or 'C:\Program Files (x86)\ Windows Kits\8.0\References\CommonConfiguration\Neutral\Windows.winmd' from the list of referenced files. 

How can i solve this?

+4
source share
1 answer

I heard that if you move all the SQLite code to the Windows storage class library and referring to it from a background task, you will get rid of the problem.

My workaround is to simply delete / rename 'C: \ Program Files (x86) \ Windows Kits \ 8.0 \ References \ CommonConfiguration \ Neutral \ Windows.winmd' only 18kb, so I think it is unlikely that he needs something

+4
source

Source: https://habr.com/ru/post/1438171/


All Articles