AI coding tools for C# and .NET developers in 2026: who actually handles Roslyn, LINQ, and the solution file maze?
TL;DR: For Visual Studio users, GitHub Copilot is the clear winner — it has native Roslyn integration, a Debugger agent, and a new @Test command that generates xUnit/NUnit/MSTest suites from C# semantics. JetBrains Rider + AI wins for cross-platform and Unity teams. Cursor hits a hard wall with C# because Microsoft’s C# Dev Kit is licensed exclusively for VS Code, leaving Cursor users with a degraded OmniSharp fallback.
| GitHub Copilot | JetBrains Rider + AI | Cursor | |
|---|---|---|---|
| Best for | Visual Studio teams, Microsoft stack | Cross-platform .NET, Unity, Linux/macOS | Multi-file refactoring, Python/TS crossover devs |
| Price | $10/mo Pro → $19/user Business | $77/yr Rider + $10/mo AI Pro | $20/mo Pro |
| The catch | Moving to usage-based billing June 1 | Two separate subscriptions | C# Dev Kit blocked by Microsoft licensing |
Honest take: If you write C# in Visual Studio, pay the $10/month for Copilot Pro — the Roslyn-aware @Test agent alone saves more time than it costs. If you’re on macOS or Linux running Rider, JetBrains AI Pro at $10/month on top of your Rider subscription is the only option that actually understands your solution structure.
Why C# is different from every other language in AI tooling
Python and JavaScript get treated as first-class citizens by every AI coding tool. C# does not. The language has a few characteristics that break AI completions in ways that don’t bite Python developers:
- Solution files and multiple projects. A typical enterprise .NET codebase has a
.slnfile, five to fifteen.csprojfiles, shared libraries, and test projects. AI tools that index files rather than understanding MSBuild dependency graphs miss references across project boundaries. - Roslyn as the source of truth. The C# compiler (Roslyn) exposes a live semantic model — type info, nullability, symbol resolution — that IDEs use for IntelliSense, refactoring, and code analysis. Tools built on top of Roslyn get its full code inspection suite for free. Tools that bypass it get none.
- The async/await and nullable reference maze. A large portion of C# review work in 2026 is migrating legacy sync code to async/await, adding nullable annotations, and converting old-style patterns to modern C# 12/13 features. These tasks require understanding the type system, not just pattern-matching on text.
- Frameworks with strong conventions. ASP.NET Core, Entity Framework, SignalR, Azure SDK — each has conventions that an AI suggestion needs to know to avoid generating code that compiles but violates framework expectations.
None of this is unsolvable. But the tools that handle it well are the ones that plug directly into the existing Roslyn workspace.
GitHub Copilot in Visual Studio 2026: the home-field advantage
Microsoft has had years to bake Copilot into Visual Studio, and in 2026 it shows. Visual Studio 2026 (v18.3) is positioned as the first “AI-native” release — Copilot is no longer an optional add-on; it’s embedded in the profiler, the debugger, Solution Explorer context menus, and cross-file edits.
The feature that changes daily workflow for C# developers specifically: the @Test agent. Type @Test in Copilot Chat, point it at a class or method, and it generates unit tests using xUnit, NUnit, or MSTest — whichever your project already uses. The agent is built on Roslyn and MSBuild, which means it understands your actual type system and project references rather than inferring from text. The result is tests that compile on first try instead of needing three rounds of null-check fixes.
The Debugger agent launched in the April 2026 Visual Studio update is also worth calling out: it can validate a proposed fix against live runtime behavior inside the same IDE session. That loop — suggest → apply → run debugger → verify — previously required you to switch contexts. Now it’s a single Copilot conversation.
Pricing: Copilot Pro is $10/month for individuals. Copilot Pro+ is $39/month and gets you more AI credits and priority model access. Copilot Business (the team plan) runs $19/user/month and includes 1,900 AI credits per user. Important timing note: GitHub is switching all Copilot plans to usage-based billing on June 1, 2026, two days from the publication of this article. (For a full Copilot breakdown see the GitHub Copilot 2026 review.) Monthly plans automatically migrate; your allotment becomes a $10-credit pool rather than unlimited flat-rate completions. If you use Copilot heavily in large codebases, watch your first usage-based bill.
Where it falls short: Copilot is at its best inside Visual Studio on Windows. VS Code integration is solid but loses the Roslyn-backed test agent and some of the deeper debugging integration. If your team is mixed — some on Visual Studio, some on Rider — you lose the home-field advantage for the Rider half.
JetBrains Rider + AI Assistant: the right answer for cross-platform teams
Rider is JetBrains’ cross-platform .NET IDE — it runs on Windows, macOS, and Linux with equal capability, and it comes with the full ReSharper engine built in. That matters for AI tooling because Junie, JetBrains’ autonomous agent, runs on top of the same deep ReSharper code inspection engine that Rider has always had — hundreds of C#-specific inspections covering nullability, async patterns, LINQ, and naming conventions. When Junie suggests a refactoring, it has access to live semantic analysis, not just pattern recognition.
The AI subscription is a separate add-on on top of your Rider IDE license. (For a full Rider breakdown see the JetBrains AI Assistant review.)
- AI Free: 3 cloud AI credits per month plus unlimited local code completions and chat
- AI Pro: $10/month add-on — higher cloud quotas, priority model access
- AI Ultimate: $30/month add-on — max quotas, access to all supported models
The Rider IDE itself is $77/year for the first year under a standard individual subscription (discounts for students and open-source maintainers apply). Budget accordingly: you’re looking at roughly $7.60/month for the IDE plus $10/month for AI Pro = ~$18/month total, which competes directly with Cursor Pro at $20/month.
Rider’s advantage for Unity and game devs is real. Game development workflows — attaching to the Unity editor runtime, debugging IL2CPP builds, navigating the Burst compiler output — are first-class supported in Rider. Copilot in Visual Studio doesn’t have this kind of Unity-specific depth, and Cursor has no meaningful Unity workflow support at all.
Where Rider + AI falls short: Junie’s autonomous agent is good but not as fast on code generation as Cursor’s Composer for greenfield files. The AI credits model means heavy users will burn through quotas; unlike Cursor, there’s no “unlimited at a price point” option — you cap out at AI Ultimate ($30/month) and then face overage charges or credit top-ups.
Cursor for C#: the elephant-in-the-room restriction
Cursor is the best general-purpose AI coding environment in 2026. For Python, TypeScript, Go, Rust — it’s hard to argue against (see the Cursor IDE review and Cursor 3 review). But C# developers run into a hard wall that the general Cursor reviews don’t mention prominently:
Microsoft’s C# Dev Kit is blocked in Cursor.
The C# Dev Kit extension — Microsoft’s OmniSharp-v2-based language server that powers modern C# IntelliSense, go-to-definition, refactoring, and test running in VS Code — comes with a license that restricts it to “Microsoft Visual Studio Code, vscode.dev, GitHub Codespaces, and Microsoft-affiliated products.” Cursor is none of those. The extension actively disables itself when it detects a non-VS Code host.
This isn’t a workaround problem. The restriction became prominent in mid-2025 and prompted a Hacker News thread and multiple community bug reports. The community response has been to use either the older OmniSharp extension (less complete, no net8 nullable analysis) or the Muon extension. Neither matches what you get with the official Dev Kit in VS Code.
Cursor’s multi-file refactoring is genuinely faster than Copilot for general code — independent testing puts it roughly 30% ahead on equivalent tasks. But for C#, you’re working with a degraded language server. Symbol resolution across projects works partially; nullable reference type annotations are inconsistent; the test runner integration is absent. For a language as type-system-heavy as C#, this is a meaningful productivity hit.
ReSharper 2026.1 (released March 2026) expanded to support VS Code and “compatible editors” — and early reports suggest this path works in Cursor. If JetBrains fully supports ReSharper-in-Cursor, it could close the gap. But as of May 2026, it’s not a stable, documented workflow.
The realistic Cursor use case for C#: developers who split their time between C# and TypeScript/Python projects. The AI completion and chat quality is high enough that many .NET developers use Cursor anyway and accept the language server limitation for C#-specific navigation, switching to Visual Studio only when they need to run tests or use the debugger deeply.
Claude Code for .NET: the legacy modernization weapon
Claude Code occupies a different position from Copilot and Cursor. It’s not a completion engine — it’s a terminal-based agent that takes a task description and executes multi-file changes across a repository. (See the Claude Code review for the full breakdown.)
For C# developers, the highest-value use case is legacy .NET modernization: upgrading from .NET Framework 4.x to .NET 8, converting synchronous code to async/await throughout a codebase, adding nullable reference type annotations project-wide, or migrating from WebForms to Razor/Blazor.
Independent .NET developers report Claude Code handling 50–70% of the mechanical migration changes automatically — namespace updates, API replacements, using directive cleanup, ConfigureAwait(false) additions across an async chain. The dotnet-claude-kit plugin provides a structured CLAUDE.md template optimized for .NET projects, and developers report it significantly improves output quality on .NET-specific tasks.
Claude Code is included with an Anthropic Pro subscription at $20/month. Heavy usage (large migrations, frequent agent runs) will hit API costs on top of that subscription, so factor that in for month-long migration projects.
Where it falls short: Claude Code isn’t designed for daily coding with completions and chat. It’s an agent you invoke for specific tasks. Using it as your primary coding assistant means losing the inline suggestion workflow that makes Copilot and Cursor faster for ordinary development.
Free option: Windsurf Plugin in VS Code
If you want free AI completions without paying $10–20/month and you’re already in VS Code, the Windsurf Plugin (formerly Codeium) is worth installing. It offers unlimited autocomplete completions on the free tier across 70+ languages including C#, and a limited number of Cascade (agentic) chat interactions.
Critically, the Windsurf Plugin doesn’t replace your language server — it layers on top of it. So you can run the C# Dev Kit (for Roslyn-backed IntelliSense) alongside the Windsurf Plugin (for AI completions). The two don’t conflict. The Windsurf Pro plan is $20/month if you want higher Cascade quotas.
For teams with budget constraints, this combination — VS Code + C# Dev Kit + Windsurf Plugin free tier — gives you solid AI completions without a subscription.
Pricing comparison
| Tool | Free tier | Individual paid | Team |
|---|---|---|---|
| GitHub Copilot | Limited completions | $10/mo Pro, $39/mo Pro+ | $19/user/mo Business |
| JetBrains Rider + AI Pro | 3 credits/mo + unlimited completions | ~$18/mo (Rider $7.60 + AI Pro $10) | Custom (Toolbox App) |
| Cursor | 2,000 completions | $20/mo Pro | $40/user/mo Business |
| Claude Code | — | $20/mo (Anthropic Pro) | API pricing |
| Windsurf Plugin | Unlimited completions | $20/mo Pro | $30/user/mo |
The verdict by developer profile
You write C# full-time in Visual Studio on Windows: Pay $10/month for Copilot Pro. The Roslyn integration, @Test agent, and Debugger agent are all built into your existing IDE. Nothing else comes close at that price.
Your team writes .NET on Linux/macOS or you use Rider: Get Rider + AI Pro (~$18/month total). Junie runs on full ReSharper semantics, and you get a complete solution-aware experience across platforms.
You split time between C# and other languages (TypeScript, Python), and you need agentic multi-file work: Cursor Pro ($20/month) is still worth it — just accept that C# navigation is limited and keep VS Code or Visual Studio for debugging and testing. The productivity gain on your non-C# work offsets the friction.
You have a .NET Framework → .NET 8 migration coming: Budget for Claude Code API usage for a month. It handles the mechanical work that would otherwise take weeks.
You want free completions without subscribing: VS Code + C# Dev Kit + Windsurf Plugin free tier. Not as capable as the paid options, but the completions are competent and the language server is fully intact.
Frequently Asked Questions
Does Cursor work with C# at all? Yes — Cursor works with C# for completions, chat, and multi-file editing. The limitation is that Microsoft’s C# Dev Kit extension (which powers modern IntelliSense and Roslyn-based refactoring in VS Code) is licensed to run only in Microsoft products, not in Cursor. You can use the older OmniSharp extension as a substitute, but it lacks nullable reference type analysis and some .NET 8+ features. For heavy C# work, VS Code or Visual Studio is the better host.
Is GitHub Copilot worth $10/month for a .NET developer who already pays for a JetBrains All Products subscription? If you work primarily in Visual Studio, yes. The Roslyn-backed @Test agent and the Debugger agent are deep Visual Studio integrations that JetBrains AI doesn’t replicate. If you work primarily in Rider, the JetBrains AI add-on ($10/month) gives you Junie and context-aware completions inside an IDE that already understands your .NET project structure — Copilot’s Visual Studio features don’t transfer to Rider.
What’s the best AI tool for a .NET Framework 4.8 to .NET 8 migration? Claude Code. It handles 50–70% of the mechanical API replacements, namespace updates, and async conversion automatically. Write a solid CLAUDE.md describing your project structure and migration target, then run it against your solution. Review the output carefully — LINQ rewrites and dependency injection refactoring need human review — but the boilerplate work gets done.
Will the GitHub Copilot billing change on June 1 affect how much I pay? For moderate usage (daily coding, occasional chat), the $10/month allotment in Copilot Pro should be sufficient. Heavy users who run frequent agent sessions or make extensive use of multi-file edits will want to watch their usage report in the first billing cycle. Copilot Pro+ at $39/month gives you $39 in monthly credits with priority model access.
Can JetBrains Rider AI handle Unity C# projects? Yes — and it’s the best option for Unity development. Rider has deep Unity integration (attaching to the Unity Editor runtime, navigating generated code, Burst compiler support), and Junie runs on top of that integration. Cursor and Copilot have no comparable Unity-specific workflow support.
Sources
- GitHub Copilot Testing for .NET available in Visual Studio — .NET Blog
- GitHub Copilot in Visual Studio — April 2026 update — GitHub Changelog
- GitHub Copilot is moving to usage-based billing — GitHub Blog
- GitHub Copilot Plans & Pricing — GitHub Docs
- JetBrains AI Plans & Pricing — JetBrains
- ReSharper 2026.1: Expansion to VS Code — JetBrains .NET Blog
- The C# Dev Kit extension — Cursor Community Forum
- Tell HN: Microsoft bans its extensions from Cursor — Hacker News
- Claude Code for C# and .NET Developers — Zen van Riel
- Legacy Code Modernization with Claude Code — Silicon Valleys Journal
- Windsurf (Codeium) Pricing 2026 — AI Coding Flow
- Cursor vs JetBrains Rider for C#/.NET in 2026 — DEV Community
- Cursor IDE Review 2026: Features, Pricing, Pros & Cons — ZBuild
- Buy Rider: Pricing and Licensing — JetBrains
- Comparing AI Coding Tools for .NET Developers — ASP.NET Zero Blog
Last updated May 30, 2026. Pricing and features change frequently; verify current state before purchasing.
Was this article helpful?
Thanks for the feedback — it helps improve future articles.