If you don’t want to use the xml files there is another way that my good friend Tomasz Cielecki uses which he blogged about. Create a new iOS app, android app and just add in the project as a reference. My setup is Visual Studio 2012 on Windows 8 Pro with the latest Alpha release of everything Xamarin.ġ.) Go to “C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETPortable\v4.0\Profile\Profile104\SupportedFrameworks”Ģ.) Add these 2 xml documents which will allow MonoAndroid and MonoTouch to be targeted PCL platforms.ģ.) Optional: you could add these to other platforms as well if needed, i use 104 because it works.Ĥ.) Start up Visual Studio and create a new Portable Class Libary project.ĥ.) When you see a pop up for platforms simply select:Īfter that you should be on your way. ![]() net 4.5 will have to wait a bit until Xamarin and Microsoft figure everything out. I don’t have a 100% work around for getting the BCL nuget package working so async/wait and. Which allows WP, Windows Store, Android, and iOS apps. This is nice so PCLs can distinguish between different platforms. Profiles basically saying hey if you are this profile you can use these dlls. Now how PCL stuff works is everything is a Profile. 1 code base for iOS, Android, Windows Phone, and Windows Store apps. Net Framework AND that they allow you to use PCL projects…. However!!! Seeing that Xamarin.iOS and Xamarin.Android allow you to code in C# with the. net 4.5 the BCL (which you can look up and I am not going to go into details) weren’t a PCL. The biggest issue that I have seen from PCL is that not everything supports it, it is only for microsoft platforms, and until recently with. Now I wont get into it, but throw in an MVVM framework into this mix and everything should/kind of is amazing. No more project or file linking involved, simply add the PCL core project to your client apps and boom tons of functionality for you. The what basically summarizes all of this to be honest, but think about writing one core logic for your app with one type of project that anything can consume. A subset of the full framework that these platforms can consume. So why not write a lot of your core logic in a language that any of them can understand. The whole concept was that different platforms are all crazy with different code such as Xbox, Windows Phone, Silverlight. ![]() I blame this entire article on Frank Krueger so thank him on twitter and buy is amazing apps. ![]() So this morning I am going to do a quick overview of What is PCL, Why you should use PCL and how to get it setup inside of Visual Studio on your PC and also inside of Xamarin Studio on your Mac. While PCL is “sorta”/“kinda”/“it should just work” on the Xamarin platforms there still seems to be a lot of confusion and a lot of issues setting up. So last night at the Xamarin drinkup in Bellevue there was a lot of discussion about PCL and also bout MVVM frameworks such as the one I am using MVVMCross (Mvx). There is no longer a need to do any file copying or anything fancy, simply hit File->New Project -> PCL. ![]() This blog is now obsolete as official PCL support has been added to Xamarin.Android and Xamarin.iOS for both Visual Studio and Xamarin Studio.
0 Comments
Leave a Reply. |