@@ -114,7 +114,8 @@ A model published from another repository is declared under `dependencies` in
114114reads both, at every rung of the source ladder, and never writes them: a snapshot that no longer
115115matches the lock fails with ` ERR_DEPENDENCY_SNAPSHOT_STALE ` . The snapshot loads first, so your
116116own metadata can ` extends ` , overlay or reference its nodes, but an imported node is not generated
117- (and is not counted by the requirement gate) unless ` scope.include ` names its package. What C#
117+ unless ` scope.include ` names its package, and an imported requirement is not counted by the
118+ requirement gate unless ` requirements.inherit ` names it. What C#
118119does and does not do is in
119120[ Metadata dependencies] ( ../features/metadata-dependencies.md ) .
120121
@@ -305,7 +306,8 @@ new SharedModelGenerator
305306` <Version> ` (from the project file, else the nearest ` Directory.Build.props ` ). It writes nothing and
306307names the option to change when the selection is empty, is not closed over ` extends ` and reference
307308attributes, or needs vocabulary outside the library's. Give ` OutDir ` a directory that holds nothing
308- else. ` requirement.* ` and ` template.* ` nodes are never published. ` dotnet meta eject shared-model `
309+ else. ` requirement.* ` nodes are published only when ` Requirements ` is set (` requirements: true ` , default
310+ off); ` template.* ` nodes are never published. ` dotnet meta eject shared-model `
309311copies the generator into your project; the artifact bytes stay in the package, because a copy that
310312changed them would publish a model a consumer's sync refuses. The consumer runs the Node `meta deps
311313sync`, which stays the only writer of the lock and the snapshot.
0 commit comments