sockets-for-pcl
sockets-for-pcl copied to clipboard
How to install from source instead of NuGet
Hello community, I hope your week is going well. I have an inquiry and I was hoping to pick someone's brain.
- If I was to add functionality to UdpSocketClient abstraction portable interface and class and to the platform specific implementations would I need to repackage it in NuGet format?
Thank you kindly,
Hi @doubledunk
For testing/development purposes, it's easiest to reference the appropriate .dlls directly. For example -
- you clone sockets-for-pcl
- you make some changes to
IUdpSocketClient
then implement the changes inSockets.Implementation.Net
andSockets.Implementation.WinRT
, you compile and everything is :ok: - you want to play with these changes so you create new project of Windows Desktop and iOS and UWP (or whatever), and a PCL that they all reference
- In each project you reference
Sockets.Plugin.Abstractions
plus the correct dll for that platform:- for the PCL ->
Sockets.Plugin\bin\Debug\..
- for Windows ->
Sockets.Plugin.WindowsDesktop\bin\Debug\..
- for iOS ->
Sockets.Plugin.iOSUnified\bin\Debug\..
- for UWP ->
Sockets.Plugin.WindowsStore\bin\Debug\..
- for the PCL ->
Then you can write the code in your PCL and the platform projects will use their correct .dll. This is effectively what happens automatically for you when you install the nuget package. Hope that helps! :star2: