Portable class library for MonoDroid and MonoTouch

前端 未结 2 1861
耶瑟儿~
耶瑟儿~ 2020-12-28 21:39

I want to create PCL for MonoDroid and MonoTouch, to share code AES encryption (RijndaelManaged), but Visual Studio wouldn\'t let me to do so, instead it forces me to add al

相关标签:
2条回答
  • 2020-12-28 21:42

    Afaik has Visual Studio no PCL profile for the Xamarin products. So you cant select it.

    You may want to try to enable: .NET >= 4.0.3 and Silverlight 5 to get a Profile that should be compatible with the Xamarin products.

    0 讨论(0)
  • 2020-12-28 22:04

    EDIT

    This is now automatically done by the installer. You will also need the latest version of nuget.


    In fact, all you need to do is add an xml file to the correct folder. Magically a PCL profile called "Mono for Android" will appear.

    File name:

    MonoAndroid,Version=v1.6+.xml
    

    Put in folder:

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.0\Profile\Profile104\SupportedFrameworks
    

    File content:

    <?xml version="1.0" encoding="utf-8"?>
    <Framework DisplayName="Mono for Android"
      Identifier="MonoAndroid"
      Profile="*"
      MinimumVersion="1.6"
      MaximumVersion="*" />
    

    For more information look at the mvvmcross project https://github.com/slodge/MvvmCross

    0 讨论(0)
提交回复
热议问题