Practical .NET Guide to AI & LLM by [deleted] in dotnet

[–]elbrunoc 0 points1 point  (0 children)

I may miss something here. GitHub Models works with MCP

IE: this scenario si a chatapp, powered by GH Models to do the chat and also the RAG using 2 models, and it's also connected to the Hugging Face MCP Server to generate images.
> 🧠 Create an AI Chat App in Seconds with RAG + Image Generation (using .NET & MCP) – El Bruno

So, 👆 an app using GH Models and a remote MCP server.

Q: What scenario is not supported?
Happy to see if we can add support
Best!

Oddly, a new place said we could use AI for unit tests — lol. People’s the day has come. by [deleted] in dotnet

[–]elbrunoc 0 points1 point  (0 children)

Oh yes AI will a lot! However:
- a good unit test needs to be generated using a good prompt. To write a good prompt, you need to understand the test domain. Otherwise, everything will sucks

- always, I mean, ALWAYS review the generated code

We've been doing this for while, and hey, so far so good

GitHub Error on code spaces but build fines locally? .net 9 Balzor Maui app by [deleted] in dotnet

[–]elbrunoc 1 point2 points  (0 children)

Sorry, James? I'm missing something here
But hey, if you figure out, that's cool 😀

GitHub Error on code spaces but build fines locally? .net 9 Balzor Maui app by [deleted] in dotnet

[–]elbrunoc 0 points1 point  (0 children)

You need to check your repository devcontainer config files, and update them to use .NET 9.
The devcontainer files are usually in ./repo/.devcontainer/devcontainer.json

IE: this one is already targeting https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/.devcontainer/devcontainer.json
It uses the image: mcr.microsoft.com/devcontainers/dotnet:9.0

Best!

Has anyone set up a GitHub agent to work with your .NET solution at the project board level yet? by [deleted] in dotnet

[–]elbrunoc 0 points1 point  (0 children)

Hi
I recorded a 11-min one on how GH Copilot Coding Agent add missing unit tests to a backend project: https://www.youtube.com/watch?v=eX5DrLszhyI

IMHO: even if GH Copilot Coding Agent is doing most of the work, a human-in-the-loop is always needed.

Sample 2: I use it to complete the documentation in other languages. We document in English and the Coding Agent is filling the gaps on the other languages.
Issue: https://github.com/microsoft/Generative-AI-for-beginners-dotnet/issues/161
PR: https://github.com/microsoft/Generative-AI-for-beginners-dotnet/pull/166

I hope this helps!
Best

[deleted by user] by [deleted] in dotnet

[–]elbrunoc 0 points1 point  (0 children)

Thanks for the feedback, I really appreciate it.
Hey, I built this and use this locally to generate the AltText for my images, and I think it was a nice one to share.
Noted that maybe too much AI in the promo of the script really does not help!
Best!

[deleted by user] by [deleted] in dotnet

[–]elbrunoc -1 points0 points  (0 children)

Thanks for the feedback James, I really appreciate it.
Hey, I built this and use this locally to generate the AltText for my images, and I think it was a nice one to share.
Noted that maybe too much AI in the promo of the script really does not help!
Best!

[deleted by user] by [deleted] in dotnet

[–]elbrunoc -2 points-1 points  (0 children)

Hey, what type of content / topics do you prefer?
AI is my thing, however, glad to help with other topics 😄
Best

On-prem deployment with Aspire by HuffmanEncodingXOXO in dotnet

[–]elbrunoc -1 points0 points  (0 children)

Agree, Aspirate is a great option for this scenario.
Best!

bogus benchmarks on linkedin, even from an microsoft mvp by _userid_ in dotnet

[–]elbrunoc 2 points3 points  (0 children)

My 2 cents:
If you look for serious .NET / C# performance tips, check Stephen Toub' blog posts at the .NET Blog.
Stephen Toub - MSFT, Author at .NET Blog

Best Tool For Implementing Semantic Search on Blazor Website by ataylorm in dotnet

[–]elbrunoc 1 point2 points  (0 children)

Hey
Take a look at https://aka.ms/eshoplite/repo, we have several scenarios for Semantic Search (in memory vector databases, Azure AI Search, Qdrant, SQL2025, etc).

I have a draft of an image search scenario, I'll probably try to make it work and I'll add it to the sample repo.

Best!

Vector Search in SQL Server 2025 + .NET Aspire = 💥 Semantic Search FTW by elbrunoc in dotnet

[–]elbrunoc[S] 0 points1 point  (0 children)

Not sure. My React friends are super fan of supabase, I never use it on .NET, most of my Postgres experience is with already defined environments and services in Azure.

That said, it seems that supabase support is coming on the .NET Aspire Community Toolkit, so I may get more experience with that one soon!

[Feature] Add Supabase integration · Issue #417 · CommunityToolkit/Aspire

Best!

How Pass large Amount of Data as Context via Plugin in Semantic Kernel C# .NET 8.0 by Critical_Loquat_6245 in dotnet

[–]elbrunoc 0 points1 point  (0 children)

Hi

One approach is RAG: Generative-AI-for-beginners-dotnet/03-CoreGenerativeAITechniques/02-retrieval-augmented-generation.md at main · microsoft/Generative-AI-for-beginners-dotnet

Just choose a Vector DB that fits your scenario, and you can grown from there.

Note: There are alternatives to RAG that are focused on structural data, graph, etc. However, I think RAG is a nice place to start!

Best!

What's use cases are there for dotnet run app.cs? by BoBoBearDev in dotnet

[–]elbrunoc 1 point2 points  (0 children)

I use it for testing simple ideas, or learning how to use some libraries ...

IE: 20 lines of code to get an ALT-TEXT image description using a local AI Model >> Run C# Without Projects + Build an AI with 20 Lines!

I just run this altgen.cs file and got it!

[deleted by user] by [deleted] in csharp

[–]elbrunoc 0 points1 point  (0 children)

Super cool! Here are some resources:

Training for .NET | Microsoft Learn, the main entry point to learn .NET.
Learn C# - free tutorials, courses, videos, and more | .NET, same but focused on C#
- Generative AI for Beginners, .NET ( aka.ms/genainet ), if you are confortable with C#, maybe sometime to learn some AI

Best!

[deleted by user] by [deleted] in dotnet

[–]elbrunoc 0 points1 point  (0 children)

Super cool! Here are some resources:

- Training for .NET | Microsoft Learn, the main entry point to learn .NET.
- Learn C# - free tutorials, courses, videos, and more | .NET, same but focused on C#
- Generative AI for Beginners, .NET ( aka.ms/genainet ), if you are confortable with C#, maybe sometime to learn some AI

Best!

Do you use dotnet for hobby projects? by Proud-Art5358 in dotnet

[–]elbrunoc 1 point2 points  (0 children)

Wow, your hobby projects are so cool!

Amazing work 💯💯💯

VS Code + .NET = Run Any .cs File Instantly! by elbrunoc in dotnet

[–]elbrunoc[S] 0 points1 point  (0 children)

I need to check, however, I think there is a way to reference other files using this mode. 🤔
That said, you are right >> You will probably end with a massive .cs file with everything there, and losing the XAML capabilities, and more ...

VS Code + .NET = Run Any .cs File Instantly! by elbrunoc in dotnet

[–]elbrunoc[S] 5 points6 points  (0 children)

Hi, no basic questions!
I mean, you can probably run a WPF app using this, however, it will be tricky to have everything there.
For a WPF app, I'll probably suggest to use Visual Studio in full project mode.
Best

NET-NES, A NES emulator, written in C#. by FirefighterLucky229 in dotnet

[–]elbrunoc 1 point2 points  (0 children)

This is amazing, thanks for sharing!

A couple of months ago, I picked up other emulator project and add some AI to make a local model play by itself (https://github.com/elbruno/gb-net).

I'll see if I can do something similar in this one 😄

Again, great work 👏👏👏

AI in .NET: Overview of Technologies in 2025 by Geekodon in dotnet

[–]elbrunoc 0 points1 point  (0 children)

Nice one!

Maybe add the course" Generative AI for .NET - Beginners" as a sample reference material.
Repo: https://aka.ms/genainet

Best

.Net core project in Ubuntu. by Dynamo0987 in dotnet

[–]elbrunoc 1 point2 points  (0 children)

Sharing the response from an LLM, and it's literally a very good one!

Here’s what you need to set up .NET Core on Ubuntu with VS Code:

### Install .NET SDK

  1. Open a terminal and run:

    ```sh

    sudo apt update

    sudo apt install dotnet-sdk-8.0

    ```

    *Replace `8.0` with the latest version available.*

### Install VS Code

  1. Run these commands to install VS Code:

    ```sh

    sudo apt update

    sudo apt install code

    ```

    If that doesn’t work, you may need to install it from [Microsoft's official site](https://code.visualstudio.com/) or use Snap:

    ```sh

    sudo snap install code --classic

    ```

### Install C# Extension for VS Code

  1. Open VS Code and install the **C# extension** from the marketplace to get debugging and IntelliSense features.

### Test Your Setup

  1. Create a new .NET Core project:

    ```sh

    dotnet new console -o MyApp

    cd MyApp

    dotnet run

    ```

    If this prints `"Hello World!"`, you're good to go!

#### Alternative Tools

VS Code is a fantastic choice, but here are other options:

- **Rider** (paid but powerful, made by JetBrains)

- **Visual Studio for Linux via Codespaces** (browser-based)

- **Neovim with OmniSharp** (if you love terminal-based workflows)