Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
Cursor ruleCẩn thậnReview & chất lượng codeCần cài đặt chút

dotnet-cursor-rules

Aaronontheweb · Aaronontheweb/dotnet-cursor-rules

Cung cấp bộ quy tắc AI của Cursor cho phát triển .NET, bao gồm các phương pháp hay nhất cho việc xuất bản gói NuGet, CI/CD và lập trình C#.

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

134 sao21Giấy phép: Apache-2.0Cập nhật 2 năm trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Áp dụng các phương pháp hay nhất cho tài liệu và metadata gói NuGet.
  • Hướng dẫn các AI agent cấu hình pipeline CI/CD cho các dự án .NET.
  • Đảm bảo mã C# tuân thủ các mẫu code hiện đại và phương pháp kiểm thử tốt nhất.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Hơn một năm không cập nhật.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ 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.

Xem mã nguồn trên GitHub