Add NuGet package and build scripts

This commit is contained in:
Joseph Henry
2021-02-05 15:58:48 -08:00
parent 59545833e6
commit a6297b33e2
8 changed files with 238 additions and 44 deletions

View File

@@ -2,3 +2,7 @@
- Install (via [NuGet package](https://www.nuget.org/packages/ZeroTier.Sockets/)): `Install-Package ZeroTier.Sockets`
- Example usage: [examples/csharp](./../../../examples/csharp/)
# Development Notes
- The SWIG interface file `zt.i` is only present for historical reference purposes. SWIG generates a ton of unnecessary boilerplate code which is hard to completely prevent by using hints. You can generate a new wrapper for yourself using `swig -c++ -csharp -dllimport "./libzt.so" zt.i` but I would not recommend doing so unless you know what you're in for.