Configure Aider for C# projects with automatic linting, testing, and repo mapping. Includes CSharpier formatting and dotnet build integration.
Optimized Aider configuration for C# development with automatic code formatting, linting, and testing.
This configuration sets up Aider to work seamlessly with C# projects by:
1. **Prerequisites**: Install CSharpier globally:
```bash
dotnet tool install -g csharpier
```
See https://csharpier.com/docs/CLI for details.
2. **Create Configuration File**: Place this content in `.aider.conf.yml` at your repository root or home directory:
```yaml
map-tokens: 1024
file: [.editorconfig, Directory.Build.props]
lint-cmd: "dotnet csharpier --no-msbuild-check --fast --skip-write "
auto-lint: true
test-cmd: "dotnet build"
auto-test: true
cache-prompts: true
no-stream: true
```
3. **Verify Setup**: Run Aider in your project directory. It should automatically:
- Load `.editorconfig` and `Directory.Build.props` for context
- Format code with CSharpier after each change
- Run `dotnet build` to verify compilation
- Cache prompts for cost optimization
Adapted from rodion-m/awesome_ai_for_programmers collection of AI tools for developers.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-c-development-configuration/raw