Code generators
focus on tasks that matters
Dynamics Mobile CLI provides code generation tool, allowing the developer to quickly generate source code for specific purposes based on predefined templates.
It allows the developer to automate frequent and boring task like creating a new business object definition to communicate with remote system or create a new view, task and others.
Using the code generators is easy as running a command from the terminal within the root directory of your project.
Let's assume we have the following folder structure
-apps
+ myApp1
- myApp2
- ...
...
- src
+ Business Objects
+ Views
+ Tasks
So, we have our app called myApp2 and we want to generate a new "empty" business object for our app. We need to open terminal (command prompt) and execute the following commands
#go to the apps directory
$user1@yyyyy ~
$ cd apps
#go to myApps2 directory
$user1@yyy ~/apps
$ cd myApp2