roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.

Results 953 roslyn issues
Sort by recently updated
recently updated
newest added

``` #nullable enable public class C1 { public static C1? operator --(C1 x) { System.Console.Write("operator1"); return x; } } class Program { static void Main() { C1? x = new...

Area-Compilers
Feature - Nullable Reference Types
untriaged

## Background and Motivation Our "Workspace" type has a WorkspaceChanged event, which is raised any time a change is made to any part of the user's solution. This is commonly...

Area-IDE
Concept-API
Feature Request
untriaged

This issue is referenced in source. Pattern-based scenarios for collection expressions Relates to test plan https://github.com/dotnet/roslyn/issues/76130

Area-Compilers
Feature - Extension Everything
untriaged

All of the projects in the src/RoslynAnalyzers directory use `PackageReference` to reference `Microsoft.CodeAnalysis.*` when they should really be using `ProjectReference` since these projects are now in the same repo. Example:...

Area-Analyzers
Area-Infrastructure

Closes: https://github.com/dotnet/roslyn/issues/70208

Area-Compilers
Community
VSCode

https://github.com/dotnet/roslyn/issues/75753 Given that [ProjectItems.AddFromFile ](https://learn.microsoft.com/en-us/dotnet/api/envdte.projectitems.addfromfile?view=visualstudiosdk-2022) ( and [IVsProject.AddItem](https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.shell.interop.ivsproject.additem?view=visualstudiosdk-2022) fails for a shared project https://github.com/dotnet/roslyn/blob/52732de44ad21d64d8b7e2cf03de74224fc765b0/src/VisualStudio/Core/Def/ProjectSystem/VisualStudioWorkspaceImpl.cs#L1006 I used the shared project interfaces to get the path to the .projitems and wrote directly...

Area-IDE
untriaged

**Version Used**: Compiler version: '4.13.0-3.25167.3 (`73eff2b5`)'. Language version: 12.0. (VS 17.13.6) **Steps to Reproduce**: For the following code, IDE0200 suggests replacing lambda with a method group. ```csharp public static class...

Area-Compilers
untriaged

Closes #73498 Closes #77545 This also adds tests for explicit conversions on object creation expressions.

Area-Compilers
Need More Info
Community
untriaged

The VS bug has been fixed, so we can remove the workarounds.

### Discussed in https://github.com/dotnet/roslyn/discussions/78995 Originally posted by **TahirAhmadov** June 16, 2025 Currently, when you declare an variable of type `List`, it offers the name `persons` instead of just `list`, which...

Area-IDE