<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-unexpected-ai-stack-c-net-part-3--silxqutsc" -->

---
title: The Unexpected AI Stack: C# + .NET (Part 3) | daily.dev
description: A hands-on walkthrough of building an agentic chat application with C#/.NET, the GitHub Copilot SDK, and a Vue + Nuxt UI frontend. Covers wiring OpenAPI schema...
canonical: https://daily.dev/posts/the-unexpected-ai-stack-c-net-part-3--silxqutsc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Unexpected AI Stack: C# + .NET (Part 3) | daily.dev
og:description: A hands-on walkthrough of building an agentic chat application with C#/.NET, the GitHub Copilot SDK, and a Vue + Nuxt UI frontend. Covers wiring OpenAPI schema...
og:url: https://daily.dev/posts/the-unexpected-ai-stack-c-net-part-3--silxqutsc
og:image: https://api.daily.dev/og/posts/sIlXquTSc.png
og:image:alt: The Unexpected AI Stack: C# + .NET (Part 3)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Unexpected AI Stack: C# + .NET (Part 3)

**[ITNEXT](https://daily.dev/sources/itnext)** · 17 min read · 0 upvotes · 0 comments

## Summary

A hands-on walkthrough of building an agentic chat application with C#/.NET, the GitHub Copilot SDK, and a Vue + Nuxt UI frontend. Covers wiring OpenAPI schema generation, using Kubb.dev to generate TypeScript clients, streaming responses via System.Threading.Channels and Server-Sent Events, automating client generation with Aspire, and building a CSharpRepl skill by prompting a coding agent to iteratively document REPL commands for injecting into a running .NET process.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://itnext.io/the-unexpected-ai-stack-c-net-part-3-fba953e01143>

## Questions this post answers

### How do I stream responses from a background service to a frontend using System.Threading.Channels in .NET?

Use a keyed singleton Channel<string> for inbound and outbound messages, registered via AddKeyedSingleton in Program.cs. A background service (BackgroundService) reads from the inbound channel to process prompts and writes streamed output to the outbound channel, which an SSE endpoint exposes via TypedResults.ServerSentEvents wrapping an IAsyncEnumerable<SseItem<string>>.

_See how daily.dev surfaces practical .NET streaming and channels patterns for teams building agentic apps._

### How can I generate a TypeScript API client from a .NET OpenAPI schema?

Use Kubb, a TypeScript code generator with a plugin architecture, configured with pluginTs and pluginFetch to read an OpenAPI JSON schema and output typed clients. First add Microsoft.Extensions.ApiDescription.Server to the .csproj to emit the OpenAPI spec on build, then point kubb.config.ts at that generated schema file to produce fully typed fetch clients.

_Developers wiring typed client generation into their build pipeline can track tooling like this on daily.dev._

### How do I use CSharpRepl to modify code in a running .NET process without restarting it?

Connect to a running .NET process with csharprepl connect <port>, then use the #replace command to swap out a method implementation, or #wrap to wrap an existing method with additional logic like console logging, both applied live against an acquired instance such as a handler class. Piped input or .csx eval files can automate these REPL sessions, and a -u/--using flag reduces namespace verbosity in scripts.

_Track live-debugging techniques like this REPL workflow for .NET agentic tooling on daily.dev._

## Similar posts on daily.dev

- [Getting started with the GitHub Copilot SDK in .NET](https://daily.dev/posts/getting-started-with-the-github-copilot-sdk-in-net-pbloribh7) · The Art of Simplicity · 3 upvotes · 0 comments
- [Doing More with GitHub Copilot as a .NET Developer](https://daily.dev/posts/doing-more-with-github-copilot-as-a-net-developer-dektd3qud) · ASP.NET Blog · 34 upvotes · 4 comments

---

Tags: [#github](https://daily.dev/tags/github), [#.net](https://daily.dev/tags/.net), [#vuejs](https://daily.dev/tags/vuejs), [#c#](https://daily.dev/tags/c#)

[View this post on daily.dev](https://daily.dev/posts/the-unexpected-ai-stack-c-net-part-3--silxqutsc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The Unexpected AI Stack: C# + .NET (Part 3)","url":"https://daily.dev/posts/the-unexpected-ai-stack-c-net-part-3--silxqutsc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-unexpected-ai-stack-c-net-part-3--silxqutsc"},"datePublished":"2026-08-27T23:00:44.455Z","dateModified":"2026-08-28T01:21:45.482Z","description":"A hands-on walkthrough of building an agentic chat application with C#/.NET, the GitHub Copilot SDK, and a Vue + Nuxt UI frontend. Covers wiring OpenAPI schema...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e3435c87534d8f8006947fed5be12ef8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e3435c87534d8f8006947fed5be12ef8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ITNEXT","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ITNEXT","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/itnext2","url":"https://daily.dev/sources/itnext"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-unexpected-ai-stack-c-net-part-3--silxqutsc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"github,.net,vuejs,c#","timeRequired":"PT17M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ITNEXT","item":"https://daily.dev/sources/itnext"},{"@type":"ListItem","position":3,"name":"The Unexpected AI Stack: C# + .NET (Part 3)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-unexpected-ai-stack-c-net-part-3--silxqutsc#faq","mainEntity":[{"@type":"Question","name":"How do I stream responses from a background service to a frontend using System.Threading.Channels in .NET?","acceptedAnswer":{"@type":"Answer","text":"Use a keyed singleton Channel\u003cstring\u003e for inbound and outbound messages, registered via AddKeyedSingleton in Program.cs. A background service (BackgroundService) reads from the inbound channel to process prompts and writes streamed output to the outbound channel, which an SSE endpoint exposes via TypedResults.ServerSentEvents wrapping an IAsyncEnumerable\u003cSseItem\u003cstring\u003e\u003e. See how daily.dev surfaces practical .NET streaming and channels patterns for teams building agentic apps."}},{"@type":"Question","name":"How can I generate a TypeScript API client from a .NET OpenAPI schema?","acceptedAnswer":{"@type":"Answer","text":"Use Kubb, a TypeScript code generator with a plugin architecture, configured with pluginTs and pluginFetch to read an OpenAPI JSON schema and output typed clients. First add Microsoft.Extensions.ApiDescription.Server to the .csproj to emit the OpenAPI spec on build, then point kubb.config.ts at that generated schema file to produce fully typed fetch clients. Developers wiring typed client generation into their build pipeline can track tooling like this on daily.dev."}},{"@type":"Question","name":"How do I use CSharpRepl to modify code in a running .NET process without restarting it?","acceptedAnswer":{"@type":"Answer","text":"Connect to a running .NET process with csharprepl connect \u003cport\u003e, then use the #replace command to swap out a method implementation, or #wrap to wrap an existing method with additional logic like console logging, both applied live against an acquired instance such as a handler class. Piped input or .csx eval files can automate these REPL sessions, and a -u/--using flag reduces namespace verbosity in scripts. Track live-debugging techniques like this REPL workflow for .NET agentic tooling on daily.dev."}}]}
```

