armandj77-zz / cqrsandmediator-scaffolding Goto Github PK
View Code? Open in Web Editor NEWA dotnet CLI code scaffolding tool for domains that implement CQRS and Mediator Patterns
Home Page: https://armandjordaan.com
License: MIT License
A dotnet CLI code scaffolding tool for domains that implement CQRS and Mediator Patterns
Home Page: https://armandjordaan.com
License: MIT License
The solution fails to run when due to a hardcoded file path the DomainSettingsModel.cs file
Note:
The tool requires that the project is set up already and that the actions are executed in the top-level directory of where your domain layer directory is located.
Can you be more specific?
What is that top-level directory?
I tried to run the scaffolder in the root directory where all the other domains and commands and queries are, with the following arguments:
scaffold -o Nomenclatures -o Create -ot command
and I got this exception:
Unhandled exception. Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: unexpectedly not a rooted path
at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Object[] args)
at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowInternalRooted(String value)
at Microsoft.Build.Construction.SolutionFile.set_FullPath(String value)
at Microsoft.Build.Construction.SolutionFile.Parse(String solutionFile)
at CQRSAndMediator.Scaffolding.Models.DomainSettingsModel..ctor(String concern, String operation, PatternDirectoryType patternType, GroupByType groupBy) in C:\Sources\MyGithub\CQRSAndMediator-Scaffolding\Models\DomainSettingsModel.cs:line 27
at CQRSAndMediator.Scaffolding.Infrastructure.ClassAssembler..ctor(String concern, String operation, PatternDirectoryType patternType, GroupByType groupBy) in C:\Sources\MyGithub\CQRSAndMediator-Scaffolding\Infrastructure\ClassAssembler.cs:line 19
at CQRSAndMediator.Scaffolding.Infrastructure.ClassAssembler.Configure(String concern, String operation, PatternDirectoryType patternType, GroupByType groupBy) in C:\Sources\MyGithub\CQRSAndMediator-Scaffolding\Infrastructure\ClassAssembler.cs:line 23
at CQRSAndMediator.Scaffolding.Builders.BuildResponse.Build(String concern, String operation, GroupByType groupBy) in C:\Sources\MyGithub\CQRSAndMediator-Scaffolding\Builders\BuildResponse.cs:line 10
at CQRSAndMediator.Scaffolding.Program.<>c__DisplayClass0_0.
By the way, it would be nice if the application shows the help when invoked without any arguments.
Hi Armand, great job, I've been playing around with this package a bit, I found it very interesting, you have some unit test, I'm willing to work on this, but I wouldn't want to break it!
Operation parameter in Command Parameters section must be
-o|--operation <OPERATION>
instead of
-c|--concern <NAME>
Good work :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.