Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

After reading this document you will know how-to download, install and use the CodeSmith Generator SDK in your applications.

Download

After logging into your account, visit the following the downloads section to download the latest version of CodeSmith Generator.

Info
It is recommended that you download the Zipped Version of CodeSmith Genreator as it includes all of the assemblies that you will need to reference in your SDK application.  

Installing the license

A license key file will be emailed to you after purchase the SDK license from the online store. This license file needs to meet one of the following criteria:

  • Embed the license file into your application as an embedded resource in the assembly that calls the CodeSmith.Engine.
  • Place the license file into the same directory as your application.

Creating a new project

In order to use CodeSmith Generator SDK you will need to create a new .Net 4.0 or newer project. In the example below, we will be creating a new console application.

Info
A C# and VB.Net sample SDK project exists in your extracted samples under the following directory (Documents\CodeSmith Generator\Samples\<VERSION>\Projects\CSharp\APISample). You may need to do some minor changes like changing the ConnectionString.

Adding project references

Next, you are required to reference the following assemblies:

  • CodeSmith.Core.dll
  • CodeSmith.Engine.dll

...

Info
These assemblies will be located in the zipped version of Generator that you downloaded in the previous step.

...

In the example below we will also need to reference the following assemblies:

...