The CodeSmith Generator Console application enables executing CodeSmith Generator Project files from the command line in a very simple manor. Here is an example of executing the PersonArray CodeSmith Project file:
cs.exe PersonArray.csp |
You can reset your Generator samples and maps to the default state by running the following command line statement.
cs.exe /resetsamples cs.exe /resetmaps |
You can remove all of the CodeSmith Generator cached resources by running the following command.
By default, we will remove any invalid cache any time CodeSmith Generator runs. |
cs.exe /clearcache |
In some cases you may need to reset Generator licensing (E.G., You upgrade from a beta to the final release and you are unable to activate your new license until the beta period expires). You can do this by entering in the following command
cs.exe /resetlicense |