Airsc is free for everyone. If it helps you, support it with $2–$20.

Support
Cursor ruleCautionCode review & qualitySome setup

dotnet-cursor-rules

Aaronontheweb · Aaronontheweb/dotnet-cursor-rules

Provides a collection of Cursor AI rules for .NET development, covering best practices for NuGet package publishing, CI/CD, and C# coding.

.mdc files for defining Cursor rules specific to .NET projects

134 stars21License: Apache-2.0Updated 2 years ago0 opens

Preview

▍

What you can do with it

  • Enforce best practices for NuGet package documentation and metadata.
  • Guide AI agents to configure CI/CD pipelines for .NET projects.
  • Ensure C# code adheres to modern coding patterns and testing best practices.

Safety check

Caution

Usable, but read the notes first.

  • ●Not updated for over a year.

Automated scan of the repo files. Always review code you run.

From the README

🎯 .NET Cursor Rules

A collection of Cursor AI rules for .NET development best practices.

How to Use This Repository

Copy the relevant rules you want to use into your project's .cursor/rules directory OR add them as global rules in the Cursor IDE.

📚 Available Rule Sets

📦 NuGet Package Publishing

Rules for publishing high-quality NuGet packages:

  • 📄 License configuration best practices
  • 📚 Package documentation requirements
  • 🏷️ Metadata organization guidelines
  • 🔍 Source debugging and symbol package setup
  • 🔗 Dependency management recommendations
  • 🔢 Versioning conventions
  • 🚀 Build and pack commands

🛠️ .NET Tool Management

Rules for working with .NET CLI tools:

  • 📦 Publishing tools as NuGet packages
  • 🔧 Consuming tools in projects
  • 🔄 Managing tool versions and updates
  • ✨ Best practices for tool development

🔄 CI/CD

Rules for build and deployment processes:

  • 🏗️ Build system configuration and best practices
  • 📝 Release management and versioning
  • 🔐 Code signing and security
  • 🚀 Pipeline configuration (GitHub Actions & Azure DevOps)
  • 📦 Package publishing

🎛️ .NET SDK Management

Rules for managing .NET solutions and dependencies:

  • 🎯 SDK version control and configuration
  • 🏗️ Solution-wide build properties
  • 📦 NuGet package management
  • 🔒 Security and license compliance
  • 🚀 Build and dependency automation

💻 C# Development

Rules for writing clean, maintainable C# code:

  • ✨ Modern C# coding patterns
  • 🧪 Testing best practices
  • 📁 Code organization
  • 🛡️ Error handling
  • 🔌 Dependency management

⚡ Benchmarking

Rules for performance testing and benchmarking:

  • 📊 BenchmarkDotNet usage
  • 🧮 Memory and allocation analysis
  • 📈 Performance regression testing
  • 💪 Hardware optimizations
  • 🔄 CI/CD integration

🚀 Usage

These rules are designed to be used with Cursor, providing AI-powered guidance for .NET development. Each rule set contains:

  • 📖 Detailed best practices
  • 🛠️ Example configurations
  • 🔒 Security considerations
  • 🔧 Maintenance guidelines

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

Copyright 2010-2025 Aaron Stannard Licensed under the Apache 2.0 license.

View source on GitHub