How-to: Connect to an Oracle Database with CodeSmith Generator

Sometimes User interfaces can't provide a solution for every scenario where you might need additional functionality by customization. One area where you might come across this is if you're trying to use Oracle on an 64bit machine or in a custom Oracle instance. If you are running Windows XP there is a good chance you can get away with using the built in Connection Editor and use CodeSmith to connect to your Oracle Schema. If this doesn't work you may be scratching your head and thinking you are out of luck. The good news is your not. You will need to use a modified connection string...

How-to: Set the File Encoding of an CodeSmith Generator Template

There may be a time when you need to use Extended ASCII Codes in your CodeSmith Generator Templates . If you have already tried using them into your template you have more than likely ran into the following problem. When a user first creates a template an Encoding attribute is not added by default to the CodeTemplate directive. So when a user starts adding characters in the Extended ASCII range, they will run into the following problem without first setting the encoding attribute. If you don't add the Encoding Attribute to your template before saving, closing and reopening your template. You...

How-to: Manual uninstall CodeSmith Generator

I've come across a few issues, where a CodeSmith Generator install might become corrupt when going from a beta to RTM. The following guide will show you how to successfully remove CodeSmith Generator from your computer. Please allow 10 to 15 minutes of your time to complete this guide. Please note: This guide could be used to uninstall other .net applications. You will need to download the Windows Installer CleanUp Utility . After you have installed this application you will need to launch the following executable: C:\Program Files\Windows Installer Clean Up\msicuu.exe . After the application...

CodeSmith Generator 5.0 RTM available now

Over the past year the CodeSmith team has been hard at work on CodeSmith Generator 5.0 . This release contains many fixes, performance enhancements and other enhancements over the previous versions. Below is a list of some of the major changes between CodeSmith Generator 5.0 and CodeSmith Generator 4.0. I have highlighted some of my favorites below. 5.0.0 Final * Added a tab for editing variables in the CodeSmith Project settings dialog. * Made it so that any .csp variables are automatically used when there is a string matching the variable value in the property values. * Made it so that variables...

How-to: Reset the CodeSmith Generator Sample Templates

A tip that not a lot of people know is that the samples are not reset during every new release of CodeSmith Generator. New versions of templates are added to the CodeSmith Generator template directory for the Major and Minor versions. However that is not the case for regular builds (identified via the assembly build number) for example: 5.3.x. Please note that this will also work if you want to reset your templates for the fun of it. You might be asking yourself, well why doesn’t CodeSmith Generator automatically update my templates for me. Well there is a pretty good reason behind this....

How-to: Reset a CodeSmith Generator license.

Every once in a while you might run into a licensing problem when using CodeSmith Generator . This can be when the Visual Studio add-in becomes corrupted, or you encounter some kind of licensing problem and you have problems activating. You can fix these related problems by resetting the license file and reactivating your copy of CodeSmith Generator. First you will need to exit all CodeSmith Generator related applications (CodeSmith Generator Studio, Visual Studio) and follow the steps below. 1) Open the windows run (windows key + r or start -> run) dialog box and type “cmd” 2) And...