dotnet / dotnet/project-system
Remove usages of banned APIs
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
#4374 introduces a banned API analyzer to help prevent future usages of certain APIs, as discussed in #3777.
It suppressed existing usages of banned APIs. Most of those should be replaced.
The suppressions were in 047b1f3f3b1bbf6b4f3862e4a443745fe408a9f2, and can be found by searching for `#pragma warning disable RS0030`.
- [ ] `ProjectAutoLoad`
- [ ] `ConfiguredProjectAutoLoad`
- [ ] `LoadedProject`
- [x] `IServiceProvider/IAsyncServiceProvider` (PR #4596)
- [X] `IProjectLockService` (PR #4385, #4405)
- [x] `IProjectGuidService` (PR #4379)
Contributor guide
Research direction
Search the suppressions from commit 047b1f3f3b1bbf6b4f3862e4a443745fe408a9f2 for `#pragma warning disable RS0030`. Review the remaining usages of `ProjectAutoLoad`, `ConfiguredProjectAutoLoad`, and `LoadedProject`; done means replacing those usages and removing the corresponding suppressions so the banned API analyzer no longer reports them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- devtools
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100