How to convert windows form library to windows phone library - c#

I have just downloaded agsXMPP SDK from this link , I opend the source code and I want to build the .dll so it would work for Windows Phone, since it's made for Winforms.
So is it possible to do so? If so how can I do that?

it does not build without modifications for Windows Phone. Sockets are totally different on Windows Phone and other required namespaces are missing. This mean you have to make some major modifications to compile it for WP.
The MatriX SDK which you can download on the same page works fine on Windows Phone.

Related

Getting app to install emulator in a xamarin project without having the source code

I have looked through the Microsoft documentation but everything seems to want you to run everything with the development code. I used a bitbar tutorial to help start my C# xamarinui test framework. I have the emulators working I just want the apk and ios apps to install as the first test. I know how to drag and drop and put the app on the phone manually. I am looking for a way to get the app to install and launch through test code or by some operation. I do not have access to the source.
Only for the Android case, google for the apk, usually they are available on sites like apk pure etc. If the apk has executables for x86 inside you could install in on android simulator using just drag and drop.
For iOS this seems not possible as the installer has to be signed with appropriate profiles that only app developer has in his possession.

Native Images generated against multiple versions of assembly System.Net.Http.Phone

I have created a windows phone App 8.1 with xamarin shared project. After creating the XAP file, I tried to install in the WP device using Windows Phone 8.1 Deployment tool. It is being installed without any problem.
But if I install the same using different machine and device it shows the following error.
Native Images generated against multiple versions of assembly System.Net.Http.Phone
I checked this and this, but could not make out since the difference in assembly.
Should I need to do something in the other machine or need to do something in my development machine to get this thing done. Please Help :(

Converting Android App to Windows App using Xamarin

Can a Android Hybrid App with some plugins written in Java and others imported from Cordova, be made windows phone complaint using Xamarin ?
Is there any such feature in VS 2015 from which conversion of android app to windows be made possible without much rework. Please help.
No. Xamarin will not allow you to automatically convert an app from one platform to another.
Microsoft has announced Project Astoria as part of Windows 10. This will enable Android apps to run as Windows Universal apps.
Can a Android Hybrid App with some plugins written in Java and others
imported from Cordova, be made windows phone complaint using Xamarin ?
No you cannot.
There are two ways to port Java code to C#.
The first way is to port the code manually.
The second porting methodology is to try and automate the process by using a code converter.

SpellCheck for Windows Phone

I'm using NetSpell.SpellChecker in my WindowsPhone 8.1 application, but when I compile the code I'm getting the following error:
The base3 class or interface 'System.CompoenentModer.Compoenent' in
assembly xxx referenced by type NetSpell.SpellChecker.Spelling could
not be resolved.
Does anyone have an idea how to solve it? Is NetSpell supported in Windows Phone apps?
If not, do you have any idea of how to implement spellcheck/auto correct in Windows Phone?
If you are using Windows Runtime to build apps for Windows Phone, the support is built in, use:
<TextBox IsSpellCheckEnabled="True" />
Unfortunatly this doesn't work in Windows Phone Silverlight applications.
And the NetSpell library doesn't seem to be compatible with Windows Phone, it is dependent on System.ComponentModel.Component, which according to the MSDN documentation is not supported on Windows Phone. I have yet to find another spell checker library. (NHunSpell also doesn't seem to work with Windows Phone)
If it is for your app, I would recommend writing the app as a Windows Phone Store app (Windows Runtime) and use the built in support instead.

Save/open SharePoint Library files from Windows 8.1 app

I am trying to save a local XML file to a SharePoint 2013 Library. Since Windows 8 apps (XAML) do not allow me to use the Microsoft.SharePoint.client.dll, I have been looking into the SP Rest API but have not found any documentation on how to save/open files. Any direction on this is much appreciated.
Share .NET works with Windows 8 apps. I think it is possible to get it as portable class library too.

Categories

Resources