You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit beb009b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(csharp): derive C# namespace from metadata packages by default (#512)
* fix(csharp): derive namespaces from the metadata package when none is configured
* no-mistakes(review): Add package usings to home-namespace C# generators
* no-mistakes(review): Scope derived home to in-scope packages; widen compile test
* no-mistakes(review): Derive home namespace from in-scope packages only
* no-mistakes(document): Docs updated for derived C# namespace default. Two stale spots fixed: the port doc paragraph (added the no-common-root failure, rewrapped) and the codegen skill reference, which now points to docs/ports/csharp.md. CHANGELOG and docs/features/cli.md were already updated by the change. No executable code or tests touched.
* no-mistakes(lint): Regenerate showcase site payload for derived C# namespace
Copy file name to clipboardExpand all lines: docs/features/cli.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,9 +217,9 @@ the committed `--out` tree, never touching it), and a **clean `--db` rejection
217
217
directory and `codegen/Generators.cs` are present, `--codegen`. The output directory is
218
218
`csharp.outDir` in `.metaobjects/config.json` (the same setting `gen` writes to); `--out <dir>`
219
219
wins over it. With neither, the codegen gate is skipped with a note that names the setting. The
220
-
namespace for types no package binding places is `--namespace`, else `csharp.namespace` there,
221
-
read the same way by `gen` and `verify`; a run that emits such a type with neither set stops and
222
-
asks for one. A bare run prints the subverb note. The **Java/Kotlin `mvn metaobjects:verify`** port expresses the same vocabulary as a
220
+
namespace of each type comes from its metadata package (`acme::billing` is `Acme.Billing`);
221
+
`csharp.namespace` there (or `--namespace`) replaces that with one flat namespace for types no
222
+
package binding places, read the same way by `gen` and `verify`. A bare run prints the subverb note. The **Java/Kotlin `mvn metaobjects:verify`** port expresses the same vocabulary as a
223
223
`mode` parameter (Maven goals are parameter-driven, not flag-driven). With `mode` unset the goal
224
224
runs both gates below, skipping the template gate with a note when no `templateRoot` is set.
0 commit comments