Skip to content

Emitter framework CSharp progress #7655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jun 30, 2025
Merged

Emitter framework CSharp progress #7655

merged 26 commits into from
Jun 30, 2025

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Jun 16, 2025

Feature branch that was used to checkin features with dev version of alloy.

Copy link
Contributor

github-actions bot commented Jun 16, 2025

All changed packages have been documented.

  • @typespec/emitter-framework
  • @typespec/http-client-js
  • @typespec/http-client
  • @typespec/tspd
Show changes

@typespec/http-client-js - dependencies ✏️

Upgrade to alloy 0.18.0

@typespec/http-client - dependencies ✏️

Upgrade to alloy 0.18.0

@typespec/tspd - dependencies ✏️

Upgrade to alloy 0.18.0

@typespec/emitter-framework - dependencies ✏️

Upgrade to alloy 0.18.0

@typespec/emitter-framework - feature [✏️](https://github.com/microsoft/typespec/edit/feature/ef-csharp/.chronus/changes/nullable-properties-2025-5-23-16-25-19 copy.md?pr=//pull/7655)

[C#] Add support for JsonPropertyName attributes on properties

@typespec/emitter-framework - feature ✏️

[C#] Add support for nullable properties

Copy link

pkg-pr-new bot commented Jun 16, 2025

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/emitter-framework@7655

commit: aa84b73

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jun 16, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

maorleger and others added 18 commits June 18, 2025 15:51
This pull request introduces several enhancements to the
`emitter-framework` package, focusing on improved handling of
documentation comments, updates to dependencies, and adjustments to test
cases for better alignment with C# conventions. The most important
changes include adding support for rendering doc comments in C#
components, updating dependencies in `package.json`, and modifying test
cases to reflect these updates.

### Enhancements to documentation handling:

*
[`packages/emitter-framework/src/csharp/components/utils/doc-comments.tsx`](diffhunk://#diff-087e1aeed57c139171681aa254ec8bd9ecfeebf1f1dfbae69428068224016c25R1-R59):
Added a new utility function `getDocComments` to render doc strings for
TypeSpec types, including support for parameter and return type
documentation.
*
[`packages/emitter-framework/src/csharp/components/class-declaration.tsx`](diffhunk://#diff-658c1a3f2ea2971e306337f9b3c86cb81840dde47224f9a629d4614e1ab47e68R6):
Integrated `getDocComments` into class declarations, properties, and
methods to include documentation in the rendered C# output.
[[1]](diffhunk://#diff-658c1a3f2ea2971e306337f9b3c86cb81840dde47224f9a629d4614e1ab47e68R6)
[[2]](diffhunk://#diff-658c1a3f2ea2971e306337f9b3c86cb81840dde47224f9a629d4614e1ab47e68L31-R37)
[[3]](diffhunk://#diff-658c1a3f2ea2971e306337f9b3c86cb81840dde47224f9a629d4614e1ab47e68R46-R57)
[[4]](diffhunk://#diff-658c1a3f2ea2971e306337f9b3c86cb81840dde47224f9a629d4614e1ab47e68R74-R91)
*
[`packages/emitter-framework/src/csharp/components/enum-declaration.tsx`](diffhunk://#diff-aa0ae1a229f62db1a9eea50d4faf0479377289ddcd02e32bcdaf753ed166738fR6):
Added support for rendering doc comments for enum members using the
`getDocComments` utility.
[[1]](diffhunk://#diff-aa0ae1a229f62db1a9eea50d4faf0479377289ddcd02e32bcdaf753ed166738fR6)
[[2]](diffhunk://#diff-aa0ae1a229f62db1a9eea50d4faf0479377289ddcd02e32bcdaf753ed166738fR34-R54)

Resolves #7680
@timotheeguerin timotheeguerin changed the title EF csharp progress Emitter framework CSharp progress Jun 30, 2025
@timotheeguerin timotheeguerin marked this pull request as ready for review June 30, 2025 21:42
@timotheeguerin timotheeguerin enabled auto-merge June 30, 2025 21:56
@timotheeguerin timotheeguerin added this pull request to the merge queue Jun 30, 2025
Merged via the queue into main with commit 58e791b Jun 30, 2025
26 checks passed
@timotheeguerin timotheeguerin deleted the feature/ef-csharp branch June 30, 2025 22:20
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.

4 participants