@nx/dotnet - Detect central package management version changes #35233
chriscameron-vertexinc
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have a C# monorepo that uses central package management. All nuget package versions are defined in a Directory.Packages.props file in the repository root, and inherited by all of the projects:
My nx.json looks like:
{ "installation": { "version": "22.5.4", "plugins": { "@nx/dotnet": "22.5.4", "@nx/js": "22.5.4" } }, "$schema": "./node_modules/nx/schemas/nx-schema.json", "defaultBase": "dev", "plugins": [ "@nx/dotnet" ], "namedInputs": { "default": [ "{projectRoot}/**/*", "{workspaceRoot}/src/Directory.Packages.props", ... ] }, "release": { "projects": [ "ProjectA", "ProjectB", ... ], "projectsRelationship": "independent", ... } }With this setup all projects are released whenever a version is changed in the Directory.Packages.props.
Instead, I would like the dotnet plugin to natively determine which projects need to be released by examining the project dependencies.
For example, if ProjectA depends on NugetPackageA, I shouldn't need to release ProjectB when NugetPackageA is updated.
Beta Was this translation helpful? Give feedback.
All reactions