Add C# examples using dnsimple-csharp - #78
Open
solrevdev wants to merge 3 commits into
Open
Conversation
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
force-pushed
the
add-csharp-examples
branch
from
July 11, 2026 06:22
ec07296 to
2c60613
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a
csharpdirectory with examples for the DNSimple C# client (theDNSimplepackage 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: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
TOKENenvironment variable, and the top level README now links to the new directory. The project multi-targetsnet10.0andnet9.0(the package minimum), builds with no warnings, and bad_auth was verified against the live sandbox.🤖 Generated with Claude Code