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
Copy file name to clipboardExpand all lines: .cursor/skills/generate-ids/SKILL.md
+25-18Lines changed: 25 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,23 @@
1
1
---
2
-
name: generate-xrm-ids
3
-
description: Generate XrmUnitTest Id<T> definitions using the Id Generator CLI. Use when writing or updating unit tests that need Id<>, nested *Ids classes, or test entity GUIDs for Dynamics/Dataverse.
2
+
name: generate-ids
3
+
description: Generate DataverseUnitTest Id<T> definitions using the Id Generator CLI. Use when writing or updating unit tests that need Id<>, nested *Ids classes, or test entity GUIDs for Dynamics/Dataverse.
4
4
---
5
5
6
-
# Generate XrmUnitTest IDs
6
+
# Generate DataverseUnitTest IDs
7
7
8
8
Use the Id Generator CLI instead of hand-writing GUIDs or guessing naming rules.
See the [Id Generator wiki](https://github.com/daryllabar/XrmUnitTest/wiki/Id-Generator) for input format details.
69
+
See the [Id Generator wiki](https://github.com/daryllabar/XrmUnitTest/wiki/Id-Generator) for input format details and the [Id Generator CLI wiki](https://github.com/daryllabar/XrmUnitTest/wiki/Id-Generator-CLI) for full documentation.
70
+
71
+
## Build from source (contributors)
72
+
73
+
From the repository root:
74
+
75
+
```powershell
76
+
dotnet run --project IdGenerator.Cli -- "Account 2|Contact"
Copy file name to clipboardExpand all lines: IdGenerator/Id-Generator-CLI.md
+50-21Lines changed: 50 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Id Generator CLI
2
2
3
-
Use the Id Generator CLI (`idgen`) to generate `Id<T>` definitions for XrmUnitTest from the command line or from AI coding assistants such as Cursor.
3
+
Use the Id Generator CLI (`idgen`) to generate `Id<T>` definitions for DataverseUnitTest from the command line or from AI coding assistants such as Cursor.
4
4
5
5
This complements the [Id Generator](Id-Generator) WinForms tool and reuses the same parsing and output logic.
6
6
@@ -10,40 +10,68 @@ This complements the [Id Generator](Id-Generator) WinForms tool and reuses the s
dotnet run --project IdGenerator.Cli -- --settings-file .cursor/IdGeneratorSettings.json --input "Account 2|Contact"
297
325
```
298
326
299
327
### Cursor project skill
300
328
301
329
This repository includes a Cursor skill at:
302
330
303
331
```text
304
-
.cursor/skills/generate-xrm-ids/SKILL.md
332
+
.cursor/skills/generate-ids/SKILL.md
305
333
```
306
334
307
335
That skill tells Cursor agents:
@@ -317,7 +345,7 @@ Clone or copy that skill into other projects if needed.
317
345
318
346
1. Determine required entity types and counts from the test being written.
319
347
2. Build entity input using the formats above.
320
-
3. Run `idgen` (or `dotnet run --project IdGenerator.Cli`).
348
+
3. Run `idgen` (install from NuGet with `dotnet tool install -g DataverseUnitTest.IdGenerator.Cli`, or use `dotnet run --project IdGenerator.Cli` when working in the source repo).
321
349
4. Paste stdout into the test's nested IDs helper class.
322
350
5. Do **not** manually create GUIDs or guess container/property naming.
323
351
@@ -404,5 +432,6 @@ The WinForms app saves settings next to its executable (`IdGeneratorSettings.jso
404
432
## Related pages
405
433
406
434
-[Id Generator](Id-Generator) — WinForms tool and input format reference
435
+
-[DataverseUnitTest.IdGenerator.Cli on NuGet.org](https://www.nuget.org/packages/DataverseUnitTest.IdGenerator.Cli)
0 commit comments