Building the SDK (Mac)
To build the RingCentral SDK using Xamarin Studio on the Mac, follow these steps:
Build Dependencies
Build PubNub SDK
Clone PubNub Repository
$ git clone https://github.com/pubnub/c-sharp
Build PubNub Libraries
- Build the PubNub messaging DLL for each of the following: Xamarin.Android, Xamarin.iOS, Xamarin.Mac
Build RingCentral SDK
Clone RingCentral SDK Repository
$ git clone -b develop https://github.com/ringcentral/ringcentral-csharp
Build RingCentral Libraries
Bootstrap
- Open
ringcentral-csharp/RingCentral.sln
in Xamarin Studio - Add
RingCentral.Android
andRingCentral.iOS
to Configuration Mappings by navigating toSolution Options > Build > Configurations > Configuration Mappings
and adding the solution items for theRelease
and / orDebug
configurations. - Close and reopen the solution to remove the alerts.
Build RingCentral solution item
- Build
RingCentral
solution item.
Build RingCentral.Android solution item
- Go to
RingCentral.Android > References
in solution explorer and deletePubNubMessaging
andRingCentral
which should have red X's. - Add .Net Assembly reference to
PubNubMessaging.dll
formono-for-android
- Add .Net Assembly reference to
RingCentral.dll
built above - Build
RingCentral.Android
solution item
Build RingCentral.iOS solution item
- Go to
RingCentral.iOS > References
in solution explorer and deleteJ:\IoS\PubnubMessaging
andRingCentral
which should have red X's. - Add .Net Assembly reference to
PubnubMessaging.dll
formonotouch
- Add .Net Assembly reference to
RingCentral.dll
built above - Build
RingCentral.iOS
solution item
Build RingCentral.NET40 solution item
- Go to
RingCentral.iOS > References
in solution explorer and deleteRingCentral
which should have a red X. - Remove
PubnubCore
andPubnubExample.cs
from project - Add .Net Assembly reference to
PubNub-Messaging.dll
formono-for-mac
- Add .Net Assembly reference to
RingCentral.dll
built above - Build
RingCentral.NET40
solution item
Build RingCentral.NET40.Test solution item
- Add .Net Assembly reference to
PubNub-Messaging.dll
formono-for-mac
- Build
RingCentral.NET40.Test
solution item
Build RingCentral solution
- Build
RingCentral
solution
Create NuGet Package
Edit and use the .nuspec
file to create the NuGet package as appropriate. Be sure to use the proper directory forward slashes for Mac.
$ nuget pack ringcentral.mac.nuspec
See the following links for more information on publishing NuGet packages: