Commit 0172c58
Remove redundant #nullable disable from 153 files (#13157)
### Context
Projects have `<Nullable>enable</Nullable>` at the project level, but
many files retain legacy `#nullable disable` directives. Files that are
already nullable-clean don't need the directive.
### Changes Made
Removed `#nullable disable` from files verified to build without
nullable warnings:
| Project | Cleaned | Remaining |
|---------|---------|-----------|
| Utilities | 5 | 21 |
| Build | 79 | 284 |
| MSBuild | 2 | 11 |
| Tasks | 41 | 86 |
| Shared | 26 | 75 |
| **Total** | **153** | **477** |
**Shared folder** required full repo builds since files compile into
multiple projects.
Files retained the directive when:
- Nullable warnings present in any TFM (net472, net10.0)
- Interface files (changing nullability affects implementors)
- Exception classes (signatures affect other code)
- Public API methods called from non-nullable contexts
### Testing
- Each project built individually with 0 warnings
- Full repo build: 0 warnings, 0 errors
- Fixed double blank lines left by directive removal
### Notes
None
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rainersigwald <3347530+rainersigwald@users.noreply.github.com>
Co-authored-by: Rainer Sigwald <raines@microsoft.com>1 parent c1d5007 commit 0172c58
174 files changed
Lines changed: 0 additions & 289 deletions
File tree
- src
- Build
- BackEnd
- Components
- BuildRequestEngine
- Caching
- Communications
- Logging
- Scheduler
- SdkResolution
- Node
- Collections
- RetrievableEntryHashSet
- Construction/Solution
- Definition
- Evaluation
- Conditionals
- FileSystem
- Globbing
- Extensions
- Visitor
- Graph
- Instance
- Logging
- BinaryLogger
- ObjectModelRemoting
- ConstructionObjectLinks
- DefinitionObjectsLinks
- Framework
- Profiler
- Sdk
- XamlTypes
- MSBuild
- Tasks
- AppConfig
- AssemblyDependency
- BootstrapperUtil
- DataDriven
- FileIO
- ManifestUtil
- ResourceHandling
- RoslynCodeTaskFactory
- Utilities
- AssemblyFolders
- TrackedDependencies
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
0 commit comments