dotnet / dotnet/project-system

Remove usages of banned APIs

Open
#4,375 0 comments 0 reactions 0 assignees View on GitHub
Needs-CPS-work Triage-Approved
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.