sqlite-net-pcl does not work in Windows Phone - c#

I followed this guide https://developer.xamarin.com/guides/xamarin-forms/working-with/databases/#PCL_WinRT, but i have problem after run app on device (on emulator WP 8.1 and android platform works fine):
Exception thrown: 'System.DllNotFoundException' in
SQLitePCLRaw.provider.e_sqlite3.ni.DLL Exception thrown:
'System.TypeInitializationException' in SQLite-net.ni.DLL
Can help me somebody?

I was at the same point as you are. You need to inlucde Visual Studio C++ 2013 Runtime package to use the SQLite-Database in WindowsPhone.
NOTE 1: Windows 8.1 and Windows Phone 8.1 require you to include the
Visual Studio C++ 2013 Runtime Package in order for
SQLitePCL.raw_basic to work.
NOTE 2: Windows Phone 8 Silverlight requires you to download
Precompiled Binaries for Windows Phone 8 VSIX and install in Visual
Studio; this enables the SQLite for Windows Phone Extension that you
can then add to your app.
You can find the above infos and a sample project (xamarin-todo-sample) on this github page. This helped me to solve the problems

Related

Trouble with setup in Windows RT 8.1

I'm making a program for a Windows Surface Pro with Windows RT 8.1, but when I want to run the setup in it, it doesn't work. It says that the version of windows don't allows the application I'm trying to execute, but in Setup Wizard of Visual Studio 2012 I say that my application doesn't require any specific operating system. Which can be the solution
Thanks a lot.
You can't run Visual Studio on Windows RT.
I'm quoting a Microsoft employee here :
Only software written using the Windows Runtime (Metro style apps) can be used on Windows RT with the exception of Microsoft Office 2013 and the desktop version of Internet Explorer 10. Developers will not be able to create applications to run on Windows RT using the Win32 APIs
He answered that on a related topic in MSDN

Windows Phone 8.1 template not appearing

I've downloaded the Windows Phone 8.1 SDK Update and I'm attempting to make a Windows Phone 8.1 project. I've updated visual studio with the latest patches but the only template options I have for 8.1 is the standard Windows Store apps as seen in the screenshot below:
Windows Store
Any idea how I can get "Windows Phone" to appear with the appropriate OS target?
I think you didn't install everything. Because i've got actually another screenshot. Following this link you must install Visual Studio 2013 Update 2 - everything needed for WP8.1 is there. Also if you wish to develop Windows Store apps (universal or something) you should install Windows 8.1 SDK from here
Look a bit bown in the list on your screenshot. On the same level the 2nd last option is Windows Phone. That should be it.

vcvarsphoneall for Windows Phone with VS2013

Now that Windows Phone SDK comes with VS2013, where do I locate the vcvarsphoneall for it? It used to be in the VC directory under WPSDK. I presume that using the WinRT version is probably not sufficient. I need this to do a command line compile of a Windows Phone library.

Building Metro Apps for beta testing

I have created a Metro application, but I did not yet send it to Windows Store as it's still in beta. One of my friends was interested in testing my application. To install my application on hes computer I used sideloading, following the steps in this article : http://blogs.msdn.com/b/patricka/archive/2012/11/05/how-do-i-deploy-a-windows-8-app-to-another-device-for-testing.aspx . The problem is that, when a press "Y" (yes) and PowerShell should install my app, it gives an error "The package or bundle is not signed or it's digital signature is corrupted. ". What should I do ? I sent him all the files that were generated by the Visual Studio.
I have to mention that :
I'm using Windows 8.1
I've developed the app in Visual Studio 2013 Professional
The target platform of my app is Windows 8.1 (and I have no idea how to change this)
My friend does not have Visual Studio installed
My friend uses Windows Server 2012 Datacenter (Could
this be the problem ? What should I do in this case ? I'm very
interested that my app to work also on Windows 8, Windows Server 2012
because this are the OS-es that are used at my office and by a
majority of the people with whom I work and that could test my app
before releasing it to the market. )
EDIT : I tried to follow the steps in this article http://msdn.microsoft.com/en-us/library/windows/desktop/jj835836(v=vs.85).aspx , but my error does not appear to be listed there.
In AppxPackagingOM > Microsoft-Windows-AppxPackaging/Operational I have the next error:
error 0xC00CE014: App manifest validation error:
The app manifest must be valid as per schema: Line 27, Column 8, Reason: Element
'{http://schemas.microsoft.com/appx/2013/manifest}VisualElements' is unexpected according
to content model of parent element '{http://schemas.microsoft.com/appx/2010/manifest}Application'.
Expecting: {http://schemas.microsoft.com/appx/2010/manifest}VisualElements.
Also in AppXDeployment-Server > Microsoft-Windows-AppXDeploymentServer/Operational I have no errors.
After reading your question again, I see the obvious solution.
The target platform of my app is Windows 8.1 (and I have no idea how
to change this)
...
My friend uses Windows Server 2012 Datacenter
You need to target Windows 8 to make it run on 8/2012. And if you check out MSDN, you'll see:
If you want to create a Windows 8 version of your app, you must use
Microsoft Visual Studio 2012.
Please make sure you have created beta app package in release mode not in debug mode. This is wrong from here.
Also check out Can Windows Server 2012 run all Metro (/ Windows Store) applications?

How to create a portable library class targeting Windows Phone 8 without installing the Windows Phone 8 SDK?

I would like to create a portable library class targeting Windows Phone 8 from a Windows 2008 R2 machine with Visual Studio 2010 on it and without Windows Phone 8.0 SDK installed.
From Visual Studio 2010, there are only these options available:
Is there a multi-target package for Visual Studio to install that supports Windows Phone 8 target framework?
Note:
Since Windows Phone SDK 8 requires Windows 8, it can't be installed on this kind of development workstation (back-end oriented).
I think it is not possible. WP8 requires VS2012 and Windows 8. I got the same problem in the past.
You don't need the WP8 SDK specifically. The simplest thing to do would be to use Visual Studio 2012 Update 2 or later. You may also be able to install a later version of the Portable Library Tools for VS 2010 to get most of the PCL WP8 support.

Categories

Resources