Skip to content

[Cherry-pick] DYN-10440: Fix Microsoft.CodeAnalysis satellite assemblies leaking into pt-BR build output#17086

Merged
jasonstratton merged 1 commit into
RC4.1.1_masterfrom
cherrypick-17082
Apr 29, 2026
Merged

[Cherry-pick] DYN-10440: Fix Microsoft.CodeAnalysis satellite assemblies leaking into pt-BR build output#17086
jasonstratton merged 1 commit into
RC4.1.1_masterfrom
cherrypick-17082

Conversation

@github-actions

Copy link
Copy Markdown

Cherry-pick of #17082 to RC4.1.1_master

Purpose

The LibG NuGet package (DynamoVisualProgramming.LibG_232_0_0) ships Microsoft.CodeAnalysis.CSharp.resources.dll and Microsoft.CodeAnalysis.resources.dll under tools/netstandard2.1/windows/pt-BR/ as unexpected cargo alongside its legitimate locale resources (ProtoGeometry.resources.dll, LibG.ProtoInterface.resources.dll, etc.).

The BeforeBuildOps target in DynamoCore.csproj copies all *.resources.dll files from that path recursively using **\*.resources.dll, which picks up the Microsoft.CodeAnalysis satellite assemblies and writes them to $(OutputPath)\pt-BR\. This was first surfaced by Florin while updating PackageApprovedDllList.txt for the Dynamo Core 4.1 upgrade in Revit (REVIT-250592).

Fix: add an Exclude to the LibGProtoGeometryUICultureAllLanguages item in DynamoCore.csproj to filter out Microsoft.CodeAnalysis*.resources.dll files from that copy, while still copying all legitimate LibG locale resources.

Also removes runtime from IncludeAssets for Microsoft.CodeAnalysis.PublicApiAnalyzers across all four referencing projects (DynamoCore, DynamoCoreWpf, DynamoUtilities, DynamoServices) as a correctness cleanup — the package has no lib/ folder and is a build-time-only analyzer, so runtime was always a no-op there.

Declarations

Check these if you believe they are true

Release Notes

N/A — build/packaging fix only; no user-facing or API changes.

Reviewers

(FILL ME IN)

FYIs

Florin (reported the issue)

…to pt-BR build output (#17082)

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
(cherry picked from commit 398369c)
@sonarqubecloud

Copy link
Copy Markdown

@jasonstratton

Copy link
Copy Markdown
Contributor

Dynamo Smoke Test failed
Rerun was successful: https://c007.cloudbees-ci.autodesk.com/job/DYNCI/job/Dynamo/job/DynamoAGTTests/job/smoke/144/

Merging

@jasonstratton jasonstratton merged commit e6b7245 into RC4.1.1_master Apr 29, 2026
13 of 14 checks passed
@jasonstratton jasonstratton deleted the cherrypick-17082 branch April 29, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants