I\'m working on a Xamarin Forms project. I want to target Android and Windows 10 UWP.
When I try to clean up the PCL by removing \"Windows 8\", \"Windows Phone Si
The best way to disable one of the builds is in Solution Explorer, Right Click the build you don't want included like Windows or WinPhone and click Unload Project. Then the that build will change to (unavailable)
Per comments on the original question, there are a couple potential routes; one would be to try and remove all packages from the projects and make the necessary changes before re-adding them again.
Another possible solution is to rename packages.config temporarily, change the PCL settings to the new target platforms, and then change the name of packages.config back again. This worked for me on my project using VS 2015. Can't take credit for this solution, read it on a blog some time back and just posting it here in case it helps someone. If I come across the blog article again I'll post the link here.
For me this is what fixed it: Look into packages.config file in that target project, and uninstall ALL installed packages. Then you'll be able to change the Targeting. Then re-install your packages.
For my initial prototype I didn't want to waste time on another platforms; so:
Now my solution is only (really) targeting Android and iOS ....
The solution that worked for me:
Uninstall Xamarin.Forms:
Right Click Solution -> Manage NuGet Packages -> Uninstall Xamarin.Forms -> Restart VS
Then remove build platforms:
Right Click Solution -> Properties -> Build -> under Targeting select Change -> Remove platform(s) -> Restart VS
Reinstall Xamarin.Forms:
Manage NuGet packages -> Search for Xamarin.Forms -> Install -> Restart VS