CCSWE.nanoFramework.MdnsServer
1.1.122
dotnet add package CCSWE.nanoFramework.MdnsServer --version 1.1.122
NuGet\Install-Package CCSWE.nanoFramework.MdnsServer -Version 1.1.122
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CCSWE.nanoFramework.MdnsServer" Version="1.1.122" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CCSWE.nanoFramework.MdnsServer" Version="1.1.122" />
<PackageReference Include="CCSWE.nanoFramework.MdnsServer" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CCSWE.nanoFramework.MdnsServer --version 1.1.122
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CCSWE.nanoFramework.MdnsServer, 1.1.122"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CCSWE.nanoFramework.MdnsServer@1.1.122
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CCSWE.nanoFramework.MdnsServer&version=1.1.122
#tool nuget:?package=CCSWE.nanoFramework.MdnsServer&version=1.1.122
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CCSWE.nanoFramework.MdnsServer
A reusable mDNS responder server for nanoFramework with dependency injection support.
Usage
Register the mDNS server in your DeviceHostBuilder:
builder.ConfigureServices((context, services) =>
{
services.AddMdnsServer(options =>
{
options.DefaultTtl = 4500;
});
});
Then configure and start the server after obtaining an IP address:
var mdns = host.Services.GetRequiredService<IMdnsServer>();
mdns.Hostname = "my-device.local";
mdns.IPAddress = IPAddress.Parse("192.168.1.100");
mdns.AddService(new MdnsServiceRegistration("my-device", "_http._tcp.local", 80, "path=/"));
mdns.Start();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NETnanoFramework | netnano1.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETnanoFramework 1.0
- nanoFramework.CoreLibrary (>= 1.17.11)
- nanoFramework.DependencyInjection (>= 1.1.32)
- nanoFramework.Iot.Device.MulticastDns (>= 1.0.260)
- nanoFramework.Logging (>= 1.1.161)
- nanoFramework.Runtime.Events (>= 1.11.32)
- nanoFramework.System.Buffers.Binary.BinaryPrimitives (>= 1.2.862)
- nanoFramework.System.Buffers.Helpers (>= 1.0.201)
- nanoFramework.System.Collections (>= 1.5.67)
- nanoFramework.System.IO.Streams (>= 1.1.96)
- nanoFramework.System.Net (>= 1.11.50)
- nanoFramework.System.Net.Sockets.UdpClient (>= 1.1.101)
- nanoFramework.System.Text (>= 1.3.42)
- nanoFramework.System.Threading (>= 1.1.52)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.