Skip to content

feat(nuget): Scope workspace expansion to the selected release workspace - #940

Merged
BYK merged 1 commit into
masterfrom
feat/nuget-workspace-scoped-expansion
Oct 27, 2026
Merged

BYK merged 1 commit into
masterfrom
feat/nuget-workspace-scoped-expansion

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #938. With a release workspace selected, a NuGet target with workspaces: true still expanded every packable project in the solution, so releasing one workspace would publish all of them.

Expansion now keeps only the projects inside the selected workspace's directory. The solution is still read from the repository root, so solutionPath keeps its documented meaning, and auto-discovery still looks there. This matches getsentry/sentry-dotnet: a single root Sentry.slnx lists src/Sentry, src/Sentry.Maui, and so on, so a src/Sentry.Maui workspace expands to just Sentry.Maui. The new tests use the existing msbuild-solution fixture, which has the same layout.

The workspace filter runs before includeWorkspaces/excludeWorkspaces. If no packable project is inside the workspace, Craft fails with a configuration error. Workspaces that are not directories (aliases) and configs without workspaces behave as before. expandWorkspaceTargets passes the release unit directory to every expandable target as a third argument. Only NuGet uses it for now; npm expansion does not change.

via @BYK.

--

View Junior Session [Sentry]

Co-Authored-By: Burak Yigit Kaya <126780+BYK@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-27 22:18 UTC

@BYK
BYK merged commit 64ef41a into master Oct 27, 2026
29 checks passed
@BYK
BYK deleted the feat/nuget-workspace-scoped-expansion branch October 27, 2026 22:18

This branch was previously deployed

1 inactive deployment
false — 99c48ab2 Deployed Oct 27, 2026 by sentry-junior[bot] via Build #3239
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.

1 participant