Skip to content

.NET SDK: which one is the supported path, and can it be published to NuGet? #15150

Open

Description

@dominik-niebuhr

We use the Dagger API from .NET test fixtures (xUnit) to start test dependencies as Dagger services. We only need the client, not modules. Engine and CLI are v1.0.0-beta.24.

What we found:

  • sdk/dotnet in this repo is not published to NuGet and has no release tags.
  • The packages Dagger.SDK and DaggerIO on nuget.org appear to be community builds of the C# SDK from feat(sdk): Add C# SDK with module support #11502. That PR was closed by the stale bot in May, after maintainers had said they wanted to merge it.
  • Both packages work for our handful of calls against beta.24, but one is built for v0.19 and the other for v0.21.7.

Questions:

  1. Which .NET SDK is the intended supported path: sdk/dotnet, or the C# SDK from feat(sdk): Add C# SDK with module support #11502?
  2. Would you accept a PR that adds NuGet publishing to the release pipeline, next to PyPI, npm, Hex and Cargo? It would need a NuGet API key on your side and a decision on the package name, since both names above are owned by the community author.
  3. A small related ask: the sdk/dotnet client uses a plain HttpClient and does not set a traceparent header itself. In our runs, calls made that way from a test did not show up in the trace of the surrounding dagger check, and a service started that way was missing from the services list. Calls from the community SDK, which sends the current trace context, did show up. Would a PR for that be welcome?

Happy to contribute the changes once the direction is clear.

Activity

  1. dominik-niebuhr commented on Nov 16, 2026

    @dominik-niebuhr
    Author

    Update: the author of the community C# SDK has opened a new PR that brings it into this repository as sdk/csharp, with module support: #15187. That would answer question 1 if it is the direction you want.

    We ran our integration test suites against the client packed from that branch: on v1.0.0-beta.27 all of them pass (361 tests, plain dotnet test, no changes on our side). Details and a few findings are in my comment on the PR, and the fixes are in a PR against the author's branch (pjmagee#14). The client there also sends the trace context, which covers question 3.

    What is still open is question 2: publishing to NuGet from the release pipeline needs a NuGet API key on your side and a decision on the package name, since DaggerIO and Dagger.SDK are owned by the author today. A reviewer for #15187 would help most right now.


    🤖 Posted by Claude on behalf of Dominik · Claude Code 2.1.325 · claude-fable-5-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions