Skip to content

[wasm] Rename confusing fromMonoPackage variable in AssetsComputingHelper.cs - #132205

Open
akoeplinger wants to merge 1 commit into
mainfrom
akoeplinger-patch-2
Open

[wasm] Rename confusing fromMonoPackage variable in AssetsComputingHelper.cs#132205
akoeplinger wants to merge 1 commit into
mainfrom
akoeplinger-patch-2

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

IsFromRuntimePack now also checks for CoreCLR runtime packs so the variable name was quite confusing.

…lper.cs

IsFromRuntimePack now also checks for CoreCLR runtime packs so the variable name was quite confusing.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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 improves readability in the WebAssembly pack tasks by renaming a local boolean in AssetsComputingHelper.ShouldFilterCandidate so it accurately reflects that IsFromRuntimePack covers both Mono and CoreCLR runtime packs.

Changes:

  • Rename the local flag from fromMonoPackage to fromRuntimePack.
  • Update all switch guards to use the renamed flag.
Suppressed comments (1)

src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/AssetsComputingHelper.cs:75

  • Same grammatical issue in these reason strings ("extension is .rsp is not supported" / ".props"). Rephrasing improves readability of the filtering diagnostics.
            ".rsp" when fromRuntimePack => "extension is .rsp is not supported.",
            ".props" when fromRuntimePack => "extension is .props is not supported.",

@akoeplinger
akoeplinger enabled auto-merge (squash) August 12, 2026 14:23
@akoeplinger akoeplinger added the os-browser Browser variant of arch-wasm label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Build-mono os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants