How to pack multiple dll's into one component package?

I am preparing component package for the Xamarin Store. We have multiple (at least three) dll’s which form the actual component, is there any way to feed all three dll’s to you packaging program?

I have tried to specify all three with 3 library options, but only the first dll got processed.

Best Answer

  • RebexRebexRebexRebex CZ ✭✭
    Accepted Answer

    To pack more dll's into one xamarin component package just use the --library option multiple times like this:

    mono xamarin-component.exe create-manually your-pack-name.xam \
        --library="ios":"bin/xamarin.ios/dll1.dll" \
        --library="ios":"bin/xamarin.ios/dll2.dll" \
        --library="ios":"bin/xamarin.ios/dll3.dll" \
        --library="android":"bin/xamarin.android/dll1.dll" \
        --library="android":"bin/xamarin.android/dll2.dll" \
        --library="android":"bin/xamarin.android/dll3.dll" \
    

Answers

  • RebexRebexRebexRebex CZMember ✭✭

    I have already resolved this issue. In fact the --library option of the xamarin-component.exe program can be used multiple times and it works.

  • sadiq81sadiq81 DKMember

    I have the same problem but on a Mac, how can i solve this problem?

  • RebexRebexRebexRebex CZMember ✭✭
    Accepted Answer

    To pack more dll's into one xamarin component package just use the --library option multiple times like this:

    mono xamarin-component.exe create-manually your-pack-name.xam \
        --library="ios":"bin/xamarin.ios/dll1.dll" \
        --library="ios":"bin/xamarin.ios/dll2.dll" \
        --library="ios":"bin/xamarin.ios/dll3.dll" \
        --library="android":"bin/xamarin.android/dll1.dll" \
        --library="android":"bin/xamarin.android/dll2.dll" \
        --library="android":"bin/xamarin.android/dll3.dll" \
    
Sign In or Register to comment.