roslyn
roslyn copied to clipboard
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
Part of https://github.com/dotnet/roslyn/issues/76868 This removes the special casing in `ProjectSystemProject` for the razor compiler. Instead, we make use of the `IAnalyzerAssemblyRedirector` interface to provide a component via MEF that handles...
Relates to test plan https://github.com/dotnet/roslyn/issues/76130
Constructor analysis is deferred. Consider reporting the warning in `ReportUnsupportedOperations`. Add test that has static constructor with lambda and updates lambda body. Update tests: `Constructor_Static_Insert`, `Constructor_Static_Delete`
Fixes: https://github.com/dotnet/roslyn/issues/78510 I decided to modify and use `CreateWithoutClone` because: 1. It was already used in lazy initialization of the syntax tree 2. At the point where we assign a...
ProjectSystemProject.UpdateProjectAnalyzerReferences has this line: https://github.com/dotnet/roslyn/blob/a89e286de3a509dd1d96db7d7e131a0c10a77917/src/Workspaces/Core/Portable/Workspace/ProjectSystem/ProjectSystemProject.cs#L830 The constructor for AnalyzerFileReference calls IAnalyzerAssemblyLoader.AddDependencyLocation, which does a bunch of I/O to read the assembly from disk to check its assembly name. This is...
**Version Used**: VS 17.14.5/C# Tools 4.14.0-3.25279.5+995f12b60535afe75cafbcefada9161d8dc4f31f **Steps to Reproduce**: 1. unzip [ReproPathMap.zip](https://github.com/user-attachments/files/20781925/ReproPathMap.zip) (source only, no binaries) 2. follow README.txt The repro is setup so that: 1. a Library.dll is created...
This issue is referenced in source. - [ ] Disallow in nameof - [x] ~~Fix anonymous type behavior~~ (bug in test) - [ ] Allow extern - [ ] Removing...
Restores the previous [move to .NET 10 P5](https://github.com/dotnet/roslyn/pull/78906) changes and brings in Arcade 10 SDK. Targets a specific build of Arcade 10 SDK because later builds introduce bootstrap failures.
Spec for methods/properties: https://github.com/dotnet/csharplang/blob/main/proposals/extensions.md Spec for operators: https://github.com/dotnet/csharplang/blob/main/proposals/extension-operators.md Championed issue: https://github.com/dotnet/csharplang/issues/8697 - [ ] Signature conflict in context of extension type (the outer static class) - [ ] Might add...
This issue is referenced in test. - We want unqualified CREF to work within the context of enclosing static type `cref="extension(int).M"` - We should test extension operators Relates to test...