Reputation: 451
I use latest version of Orchard
I enable codegen with two mode: Command-line or UI
however I got the succeed message : codegen was enabled
but when I want to create module such as: codegen module MyModule
I encountering with this message:error executing command "codegen module MyModule"
No command found matching arguments "codegen module MyModule"
?
Upvotes: 0
Views: 729
Reputation: 545
I had this same issue. I am running version 1.10.1 from a fork of the git repo.
You might have to blow away your database if you attempted to install it already and it is in an inconsistent state. If this is not an option you will need to manually remove it from the db and potentially a manifest file, I can't guide you on that.
Ensure you have run the application and completed initial setup (cooked a recipe).
Close visual studio and any other applications that might have a file lock in your Orchard.Web directory.
Run the orchard command line tool ...\Orchard\src\Orchard.Web\bin\orchard.exe
then call feature enable Orchard.CodeGeneration
Ensure the codegen commands appear when you type help commands
to confirm successful install.
Upvotes: 1