Repository navigation
Conversation
69dde3f to
aa3d97a
Compare
9693d6d to
12f864d
Compare
e157702 to
bb16585
Compare
There was a problem hiding this comment.
That review is a first look, but there will be more coming next week.
The code looks very clean overall, thank you for making it easy to review!
Please rebase whenever you can, the repo is moving fast :)
Here's a summary of some tests I did:
- Initialize a csharp project
- Initialize a csharp project in a sub directory
- Create and call check
- Create and call function
About the performances, it's decently fast and usable, I'll not worry to much about optimization for now, we can follow up later.
The goal is to merge that one during January, so it gives us a bit of time to prepare the ground and sets the current dotnet SDK as deprecated.
|
@TomChv really appreciate your feedback!! Especially with not being C# developer. Hopefully we can get some feedback from others. Regarding the Analyzers/Codefixes - They are also entirely optional and can be completely disabled, my idea behind adding them was to add some 'rails' or quick fixes. Though they could be considered maybe opinionated, or not 'complete'. |
bb16585 to
6635ccc
Compare
41c71c2 to
653a737
Compare
|
Cool! Please rebase your PR, and fix the go lint issues: https://dagger.cloud/dagger/checks/github.com/dagger/dagger@7c1c76a571c8578777eab6d0319fba08f79edc0c?check=go%3Alint#2f123919694a1896
I'll start the review today :D |
004f3f4 to
afe1ae0
Compare
3cae4cf to
9db59a5
Compare
9db59a5 to
61cdf2e
Compare
This introduces a complete C# SDK implementation for Dagger with full module development support. Core Features: - Full Dagger API client with fluent chainable interface - Module runtime with attribute-based type registration - Support for objects, interfaces, enums, and functions - Constructor-based dependency injection with async factory methods - Comprehensive attribute system for API customization Attributes: - [Object] - Mark classes as Dagger modules - [Interface] - Define interface types - [Function] - Expose methods and properties - [Constructor] - Alternative static factory constructors - [Name] - Custom parameter naming (e.g., for keyword conflicts) - [DefaultPath] - Load Directory/File from module context - [Ignore] - Exclude patterns from Directory arguments - [Deprecated] - Mark parameters/functions as deprecated - [Check] - Define validation functions - [Enum]/[EnumValue] - Custom enum types Module System: - Automatic type discovery and registration - GraphQL schema generation from C# types - State management with JSON serialization - Support for Dagger types (Container, Directory, File, etc.) - Interface implementation with dynamic proxies Developer Experience: - Roslyn analyzers for compile-time validation - Code fixes for common patterns - Comprehensive examples demonstrating all features - Integration with existing Dagger CLI tooling Signed-off-by: pjmagee <[email protected]>
61cdf2e to
8177058
Compare
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR was closed because it has been stalled for 7 days with no activity. |
|
whats the state of this @pjmagee is it maintained still? |
https://github.com/pjmagee/dagger/tree/csharp/experimental I did some updates on it about 3 months back but have taken a break. regarding your question on "maintained still", partially I guess... but ideally it would be merged in to dagger. I did some work on it again a few months ago now as you can see. And I tested it against the following repo examples: https://github.com/pjmagee/daggerverse/tree/main/aspnet-blazor-template The repository has been moving fast and they've been working towards their 1.0 release and I don't think it was the best time for the PR. I think getting some help or support merging this would be a great feat, I implemented a lot of features the dotnet version does not have. |
I'd be happy to help where possible |
A new PR has been opened with contributions already from @dominik-niebuhr merged in. You should be able to easily test the csharp SDK from my fork and branch. |


experimental C# SDK with module support
Attributes for Function with cache, Check, DefaultValue, Ignore, Field, Object, Name for alias support
Defaults & optional values supported by C# syntax (string? value) or (string value = "hello")
Constructor support with custom factory [Constructor] like python SDK
create()for asyncMakes use of Roslyn analyzers for ensuring users of SDK use the API correctly, with IDE/Compiler hints,warnings, e.g. C# class not matching Dagger.json module name, or incorrectly using Attributes
Makes use of .editorconfig to enable or override compiler/IDE C# analyzers
.NET 10 long term support - officially released on November 11, 2025, and is supported for three years until November 14, 2028
preview nuget package published at https://www.nuget.org/packages/DaggerIO/ will require Dagger team to create nuget.org account with API Key to publish update/packages but I followed existing sdks on version/bumping - happy for changes/reviews of any gaps (nuget package is NOT required for dagger modules, as the sdk is vendored with the generated code)