Skip to content

Add C# examples using dnsimple-csharp - #78

Open
solrevdev wants to merge 3 commits into
dnsimple:mainfrom
solrevdev:add-csharp-examples
Open

Add C# examples using dnsimple-csharp#78
solrevdev wants to merge 3 commits into
dnsimple:mainfrom
solrevdev:add-csharp-examples

Conversation

@solrevdev

Copy link
Copy Markdown

This adds a csharp directory with examples for the DNSimple C# client (the DNSimple package on NuGet, currently 2.0.0), mirroring the set of examples in the other language directories.

It is a single console project where each example lives in its own file under Examples/ and is dispatched by command name, similar to how the Rust directory uses one crate with a binary per example:

TOKEN=your-token dotnet run --framework net10.0 -- check example.com

Covered: auth, bad_auth, account_list, check, domains, create_domain, create_contact, zone_records, domain_transfers, transfer_domain, cancel_domain_transfer and tld_extended_attributes.

All examples connect to the sandbox and read the token from the TOKEN environment variable, and the top level README now links to the new directory. The project multi-targets net10.0 and net9.0 (the package minimum), builds with no warnings, and bad_auth was verified against the live sandbox.

🤖 Generated with Claude Code

solrevdev and others added 3 commits July 11, 2026 07:21
Add a .NET console project mirroring the examples in the other
language directories, using the official DNSimple NuGet package
(dnsimple-csharp 2.0.0). Each API operation is a small example
class dispatched by command name, e.g.:

    TOKEN=your-token dotnet run -- check example.com

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Build against .NET 10 (LTS) going forward while keeping .NET 9
support, replacing the RollForward workaround.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The project multi-targets net10.0 and net9.0, so dotnet run needs an
explicit framework. Align the code comments and usage output with the
README examples.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@solrevdev
solrevdev force-pushed the add-csharp-examples branch from ec07296 to 2c60613 Compare July 11, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant