Draft
Conversation
…ble emitter and .NET server Make the C# emitter loadable in browser environments by converting static Node.js imports (child_process, fs, path, url) to dynamic imports. Add a 'playground-server-url' emitter option that, when set, POSTs the code model to a remote .NET server instead of spawning a local dotnet process. Create an ASP.NET Core playground server that accepts code model JSON and configuration, runs the .NET generator, and returns the generated C# files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add @typespec/http-client-csharp and @azure-tools/typespec-client-generator-core to the playground-website config and dependencies. The C# emitter now appears in the emitter dropdown and its output files are shown in the file explorer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Set playground-server-url as a default emitter option for the C# emitter in the playground. The URL defaults to localhost:5174 for local dev and can be overridden via VITE_PLAYGROUND_SERVER_URL env var at build time. Add dev:playground script to http-client-csharp package.json that runs both the Vite playground and .NET server concurrently. Fix generator DLL path resolution in playground server. Verified end-to-end: server generates 18 C# files from a real TypeSpec code model (authentication/api-key test fixture). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fix the .NET server to actually bind to port 5174 (was using ASP.NET default port 5000). Add @azure-tools/typespec-azure-core as a dependency since TCGC has a peer dependency on it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
No description provided.