A collection of Cursor AI rules for .NET development best practices.
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.
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
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
Contributions are welcome! Please feel free to submit a Pull Request.
Copyright 2010-2025 Aaron Stannard Licensed under the Apache 2.0 license.