Repository navigation
Remove unused build tasks - #17426
Merged
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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
JanProvaznik
approved these changes
Aug 27, 2026
ViktorHofer
enabled auto-merge (squash)
August 27, 2026 14:50
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Five build tasks are unused: no
UsingTaskregistration in the.targetsthat ship with their packages, no references elsewhere in this repo, none in the VMR, and none in a GitHub code search across thedotnetorg.LaunchDebugger(Feed) — callsDebugger.Launch(); a debugging aid.UploadToAzure(Feed) — predates the current publishing infrastructure. Its baseAzureConnectionStringBuildTaskstays, sinceCreateAzureContainerstill uses it.ConfigureInputFeed(Feed) — wrote a NuGet.config; that'seng/common/SetupNugetSourcesnow.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.targetsnever exposed them.Shrinks the diff for #17378.