Skip to content

Remove unused build tasks - #17426

Merged
ViktorHofer merged 1 commit into
dotnet:mainfrom
ViktorHofer:remove-dead-tasks
Aug 27, 2026
Merged

ViktorHofer merged 1 commit into
dotnet:mainfrom
ViktorHofer:remove-dead-tasks

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Five build tasks are unused: no UsingTask registration in the .targets that ship with their packages, no references elsewhere in this repo, none in the VMR, and none in a GitHub code search across the dotnet org.

  • LaunchDebugger (Feed) — calls Debugger.Launch(); a debugging aid.
  • UploadToAzure (Feed) — predates the current publishing infrastructure. Its base AzureConnectionStringBuildTask stays, since CreateAzureContainer still uses it.
  • ConfigureInputFeed (Feed) — wrote a NuGet.config; that's eng/common/SetupNugetSources now.
  • GetRuntimeJsonValues, GetRuntimeTargets (Packaging) — read runtime.json into item groups.

These are public types, so this is technically a breaking change for anyone hand-registering them with their own UsingTask — but the packaged .targets never exposed them.

Shrinks the diff for #17378.

None of these five tasks has a UsingTask registration in the .targets
files that ship with their packages, and none is referenced from
anywhere else in this repository, from any repository in the VMR, or
from a GitHub code search across the dotnet organization.

LaunchDebugger called Debugger.Launch and was presumably a debugging aid.
UploadToAzure and ConfigureInputFeed predate the current publishing
infrastructure; NuGet.config generation now happens in
eng/common/SetupNugetSources. GetRuntimeJsonValues and GetRuntimeTargets
read runtime.json into item groups.
Copilot AI lite review requested due to automatic review settings August 27, 2026 14:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes five MSBuild task implementations from Arcade’s Feed and Packaging task libraries after determining they are unused (no .targets-level UsingTask registration and no in-repo references), reducing surface area and aligning with the broader effort in #17378.

Changes:

  • Removed two Packaging tasks that parsed runtime.json (GetRuntimeJsonValues, GetRuntimeTargets).
  • Removed three Feed-related tasks (LaunchDebugger, ConfigureInputFeed, UploadToAzure) that are no longer part of the current build/publishing workflow.
  • Verified there are no remaining in-repo symbol references to these tasks.
Show a summary per file
File Description
src/Microsoft.DotNet.Build.Tasks.Packaging/src/GetRuntimeTargets.cs Deleted unused Packaging task for extracting runtime targets from runtime.json.
src/Microsoft.DotNet.Build.Tasks.Packaging/src/GetRuntimeJsonValues.cs Deleted unused Packaging task for extracting values from runtime.json.
src/Microsoft.DotNet.Build.Tasks.Feed/src/LaunchDebugger.cs Deleted unused debugging-only MSBuild task.
src/Microsoft.DotNet.Build.Tasks.Feed/src/ConfigureInputFeed.cs Deleted obsolete task for generating NuGet.config.
src/Microsoft.DotNet.Build.Tasks.Feed/src/common/UploadToAzure.cs Deleted obsolete Azure upload task superseded by current publishing infrastructure.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Lite

@ViktorHofer
ViktorHofer enabled auto-merge (squash) August 27, 2026 14:50
@ViktorHofer
ViktorHofer merged commit 672ac50 into dotnet:main Aug 27, 2026
10 of 12 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 28, 2026
ViktorHofer added a commit to ViktorHofer/arcade that referenced this pull request Aug 28, 2026
Resolves conflicts with the four extracted PRs that have since merged:
dotnet#17412 (console output to build log), dotnet#17426 (unused build tasks),
dotnet#17427 (BuildTask base class) and dotnet#17428 (static task state).

Conflict resolution:
- Base classes take main's spelling. Main derives tasks from the short
  `Task` with Microsoft.Build.Utilities imported, except in the four
  files that also import System.Threading.Tasks and therefore keep the
  fully qualified name. The multithreading attribute and
  IMultiThreadableTask from this branch are layered on top.
- The three tasks deleted as dead on main stay deleted, dropping their
  annotations with them.
- GenAPITask.LogTextWriter and several using blocks were duplicated by
  the automatic merge; kept main's copy in each case. Main's LogTextWriter
  logs from a dedicated LogPendingLine rather than overriding Flush, so
  an explicit Flush() no longer emits a partial line.
- Kept main's wording for the GetPackageDescription cache comment and its
  fix for the "erreleasea" typo.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: be19d794-fe4f-43fe-9e6e-f6e6b13ec6e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants