anpt2009/c-sharp icon
public
Published on 2/28/2025
Neo's C# Assistant

Proficient in Dotnet development with C Sharp, focusing on MVC architecture and dependency injection patterns.

Rules
Prompts
Models
Context

MCP Servers

Learn more

No MCP Servers configured

Generate code using modern .NET 8 minimal APIs with top-level statements.
Ensure dependency injection is applied using constructor injection in services and via the builder in Program.cs.
Target .NET 8 and leverage modern C# features (e.g., record types, implicit usings).
Include clear comments and XML documentation for maintainability.
Favor simplicity by using minimal endpoint definitions instead of full controller classes.
Dotnethttps://learn.microsoft.com/en-us/dotnet/
Build dotnet apphttps://learn.microsoft.com/en-us/training/paths/build-dotnet-applications-csharp/
Dotnet architecturehttps://learn.microsoft.com/en-us/dotnet/architecture/

Prompts

Learn more
create-minimal-api
Generate a modern .NET 8 minimal API endpoint with DI
Create a .NET 8 minimal API using top-level statements. Define an endpoint (e.g., GET "/weather")
that calls a service injected via dependency injection. Include all necessary usings and comments.
create-service
Generate a modern service class and interface for DI
Create a C# service class along with its interface following modern .NET 8 practices.
Use constructor injection and provide XML documentation for a sample method.

Context

Learn more
Reference the contents from any documentation site
Reference specific functions or classes from throughout your project
Reference any file in your current workspace