Removing Windows Phone target from Xamarin.Forms app - xamarin

I was trying to add a web service reference to a Xamarin.Forms app when I noticed that there was no "Add service reference" option available when right-clicking the project's References. After some digging around I found that apparently you cannot add a web service reference to a project that targets Windows Phone 8. I am fine with removing Windows Phone 8 from my app as I really only care about Android and iOS. However, when I try to actually remove it, there doesn't seem to be an option to choose whether or not I want to target WP8 as you can see in the picture:
So how do I actually remove Windows Phone 8 from my app?
Thanks in advance.

Removing all Xamarin.xxx targets then uninstalling Xamarin.Forms from PCL and finally adding Xamarin.Android and Xamarin.iOS targets again seems to fix the problem.

Related

Xamarin Cross Platform disable IOS

I'm new to Xamarin.
My goal is to develop an app for both Android and Windows phone platforms, without IOS. I dont have any mac to test.
Under the properties solution, I already tried to remove IOS from the targets platform, but doesn't allow me. It's mentioned that its
Thats the solution i tried withou sucess:
Remove ios, windows8, and wp8 from Xamarin Forms PCL - nuget 3.0 opt-into error?
Please help.
It doesn't really matter! It doesn't mean you are actually stuck with iOS in any way.
The only thing it means is that the set you have selected is also compatible with the libraries in Xamarin.iOS. So it means that you could create an iOS project without too much trouble if you would want to in the future.
If you do not create an iOS project, you won't get an iOS app.

Xamarin Windows Phone Store Package

I' am in a bit of truble at the moment.
I try to build my Xamarin Windows Store App for publishing, but the Create App Packages Wizard, wont open I tried many solutions from the web, like unloading and reloading the project, or making a new project. But the wizard does not open with my solution i treid a normal Windows Phone app(no Silverlight), that worked but i could not Port my xamarin project to a standard Windows Phone App.
Has someone encountered a similar issue with Xamarin and Windows Phone,
or can anyone help to get my app into the Appstore?
Thanks.
I would have asked in the Xamarin Forum, but I cant reach them siche this morning.
And sorry for the engrish.
To submit package to the windows phone store you'll need to build your project (for ARM in Release mode to avoid warnings). Then on developer site when there is button to upload package you have to attach *.xap file from your project's bin\release folder (or bin folder you have specified). Then you can go through the next windows phone store app submitting steps.

Creating MvvmCross PCL to target Wp7.1 Xamarin.iOS, Xamarin.Android, .Net 4.5 and SL4 and higher

After researching MVVMCross project, I am very keen to use it in a new mobile project and began setting out my project today. All was going fine until I tried to target the exact frameworks Stuart does in the "N=0 : A first MvvmCross Application" youtube video. I've no idea why this collection isn't allowed and I'm not as knowledgeable on PCLs and "profiles" as I could be.
Environment:
I'm using VS2012, although VS2013 is installed also. WP7.1 is installed as is SL5 and Xamarin.iOS and Xamarin.Android. I've tried to repair both Xamarin installations because I thought the issue might have been that I installed WP7.1 after the Xamarin pair.
Also worth noting is that if I uncheck Windows Phone 7.5 and higher then it still won't work. I have to also set Silverlight 5 for the dialog to let me proceed. I'm not sure what more I can do do get this working so I'd appreciate any help I can get. All I want is to basically target the exact frameworks as are in that video mentioned above.
There are no Monotouch or Monodroid projects right now in Xamarin, so that link will not realy help you. They are called now Xamarin.iOS and Xamarin.Android. So what I've done that helped me, I've extended Profile 7, so it now supports WP7, iOS, Android and WinStore and it works great, no problems yet and I've already complete a couple of projects with it. So at that link - PCL Setup - you can find where all the profiles located and with that info try to extend Profile 7 as I suggested. So I've coppied the Windows Phone 7.xml from C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.0\Profile\Profile131\SupportedFrameworks to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile7\SupportedFrameworks
The video and PCL setup link are out of date now that Xamarin has released official support for PCLs. I'd recommend targeting the following platforms:
Windows Phone 8
Windows Store apps (Windows 8)
.NET Framework 4.5
Xamarin.iOS
Xamarin.Android
And, optionally you can target Silverlight 5.

Error when upgrade WP7 project to WP8 using VS2012

When I try to upgrade my current WP7 project to a WP8 version using VS2012 built-in feature "Upgrade to Windows Phone 8.0"
I received an error message:
Upgrade to the project could not be completed.
Object reference not set to an instance object.
This error has little useful information to work with, how to solve it?
If you want run app in WP 8 devices, perhaps you'll have a problem with the screen resolution on devices HTC. The best way is create new WP 8 project and share (add as link) most of the .cs and .xaml files of your WP7 project. I did it guided by the article http://www.developer.nokia.com/Community/Wiki/Maintaining_a_WP7_and_WP8_version_of_a_same_Silverlight_application
Good luck!

Error message: "ensure that the target device screen is unlocked" when using emulator

Anyone knows why I get the error message when debugging on emulator : "the application could not be launched for debugging. Ensure that the target device screen is unlocked and that the application is installed." while Developing in Visual Studio 2010.
I've Googled it through and try the solution, but still not fixed my problem.
Btw, my solution type is SLXNA so, there are 3 projects in there, the main project, lib project, and libcontent project.
What I've tried :
Set the main project as the startup project
Checked the build and deploy check box for the main project and checked the build checkbox for the lib project
Change active solution platform to Windows phone
Rebuild solution
But it's still didn't fixed the problem
But when I debug it on device, it runs smoothly
Anyone knows how to fix this?
Make sure that the project you want to run is set a default Startup
project
Make sure that in dropdown on top you have selected "Windows Phone
Emulator", not "Windows Phone Device"
And the most important is: click on an arrow pointing down near
the Debug/Release configuration and open Configuration Manager...
Make sure that the checkbox is checked in a column "Deploy" next
to your project name.
good news : i've solved this by simply installing the windows phone sdk 7.1.1
In case some WP8 developers stumble upon this:
I've seen the exact same error message on VS 2012 with a WP8 app. However, it worked when I switched to Visual Studio Express for Windows Phone (comes with the SDK).

Resources