How to add nuget for only Calendar and not for other components

2 posts, 0 answers
  1. Vishwajit
    Vishwajit avatar
    6 posts
    Member since:
    Dec 2018

    Posted 13 Jun 2019 Link to this post

    Hi Team,

    I am using only RadCalendarView in my app. My organization has purchased the license. My organization wants to only add Calendar nuget but there is not nuget for only Calendar rather for complete Telerik UI for Xamarin. After adding this nuget the app size increased by around 25-30 MB which is drastic increase in the apk size. Kindly let me know if there is anyway to do so or shall I raise a new feature request.

  2. Lance | Manager Technical Support
    Admin
    Lance | Manager Technical Support avatar
    1180 posts

    Posted 13 Jun 2019 Link to this post

    Hi Vishwajit,

    You account does not have a current license for UI for Xamarin, so you will not see all the packages. I see that the organization has a couple licenses, but you are not one of the Licensed Users.

    Please have them assign you as the licensed developer using the Manage Licensed Users portal, take the following steps:

    1. Log in with the account that has the license and go to the portal
    2. Unassign the license from that account (don't worry, they still own the license)
    3. Assign the license to you, using your Telerik account email address.

    Once you have that taken care of, your Telerik NuGet server connection will list all of the available packages for a licensed user.


    Calendar NuGet Package

    Okay, on to your main question. We do not publish packages for controls individually. Instead, the namespace is a package.

    In the case of RadCalendar, if you visit the RadCalendar Getting Started documentation, you'll see the required references for the control are Common, Primitives and Input.

    These are already available as packages.








    Xamarin and the Linker 

    You however do not need to add separate packages, just use a single "Telerik.UI.for.Xamarin" package. When you build your projects in Release mode and you've set the linker to SDK and User Assemblies (or "LinkAll" for iOS) the final app package will only contain code for the controls you have references in code

    Important: Make sure you have Xamarin XAML Compilation enabled, or the linker will strip out any code that does not have an x:Name. This is also true for iOS at debug time.


    Assembly References

    If you have trouble with the individual packages, or the linker isn't an option, you can use the assembly references instead of NuGet packages. You will find Telerik UI for Xamarin assemblies in following folder after installation: 

    PC - C:\Program Files (x86)\Progress\Telerik UI for Xamarin R2 2019\Binaries
    Mac - User\Documents\Progress\Telerik UI for Xamarin R2 2019\Binaries 

    In order to know which assembly references are required, go to the documentation for each control you're using. You'll find a Required Telerik Assemblies step in the Getting Started articles. For example, visit the RadCalendar's Required Telerik Assemblies section.


    Wrapping Up

    I hope this information is helpful.  If you have any further trouble, please open a Support Ticket and share the details of the project so we can assist further (when the license problem is fixed, you can open priority support tickets).

    Thank you for choosing UI for Xamarin.

    Regards,
    Lance | Technical Support Engineer, Principal
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top