C# SDK installation
The managed wrapper uses P/Invoke and SafeHandle over sdk/cgo. The NuGet package carries native runtime assets; consumers do not need Go.
Publication status: new package coordinates below describe the intended public release. They are not yet all published. Build the local package while publication is being prepared.
Install with the native package manager
dotnet add package URnetwork.SDKVisual Studio's NuGet UI and Paket use the same public NuGet package. Pin with dotnet add package URnetwork.SDK --version <version>.
Use dotnet add package URnetwork.SDK --prerelease for preview releases.
Supported platforms
The binding targets .NET 8+ on desktop. Only OS/architecture RIDs present in the package are supported. Native AOT, trimming, single-file publishing and mobile require separate validation.
GitHub and local builds
NuGet cannot use a Git URL as a package reference. Clone sdk, run make -C sdk/csharp, then install the .nupkg from sdk/csharp/dist/artifacts as a local NuGet source.
Examples
- Integration: service provisioning, scoped client credentials and Device lifecycle.
- Sockets: TCP/UDP, TLS/DTLS and HTTP client adapters.
- Messages: live peer discovery and interoperable text/ACK exchange.
- Provider: a provider client of your network with the consent disclaimer, status, payout wallet display and background run.
- Embed: URnetwork inside your own app: one scoped client per installation from your backend, the in-app Device, and the installation's data caps; with the backend tool that provisions clients and sets caps.
Apps use URNETWORK_ and a persisted URNETWORK_; only the service backend holds URNETWORK_. See the shared contract and official networking research.
Use an SDK release containing the required APIs. The package plan records package names, build outputs and publication gates.
References
- NuGet package installation — official package-manager documentation, checked September 14, 2026.