Giter Site home page Giter Site logo

armandj77-zz / cqrsandmediator-scaffolding Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 12.0 242 KB

A dotnet CLI code scaffolding tool for domains that implement CQRS and Mediator Patterns

Home Page: https://armandjordaan.com

License: MIT License

C# 100.00%
blog-article medium-article scaffold-template dotnetcore31 cqrs-pattern mediator-pattern mediatr roslyn nuget-package

cqrsandmediator-scaffolding's People

Contributors

armandj77-zz avatar armandjordaan77 avatar jordaanarmand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cqrsandmediator-scaffolding's Issues

unexpectedly not a rooted path

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.

b__0() in C:\Sources\MyGithub\CQRSAndMediator-Scaffolding\Program.cs:line 79
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass148_0.b__0(CancellationToken _)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at CQRSAndMediator.Scaffolding.Program.Main(String[] args) in C:\Sources\MyGithub\CQRSAndMediator-Scaffolding\Program.cs:line 102

By the way, it would be nice if the application shows the help when invoked without any arguments.

UnitTesting

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!

Typo in Readme

Operation parameter in Command Parameters section must be
-o|--operation <OPERATION>
instead of
-c|--concern <NAME>

Good work :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.