in

CodeSmith Community

Your Code. Your Way. Faster!

CodeSmith Releases

  • CodeSmith 5.0 Beta

       * Added ability to deep load all schema information at once which results in huge performance improvements.  This is used by setting the DeepLoad attribute on any SchemaExplorer property in your template.  This would typically be used when you know you are going to use all of the schema information from a database.
      * Ability to use .net 3.5 features in templates including LINQ.  This is accomplished by setting the CompilerVersion attribute on CodeTemplate to "v3.5".
      * CodeSmith Projects now have a single file output mode to generate all template outputs into a single file.
      * Added Ability to generate individual project outputs.
      * Changed Manage Outputs dialog to make it easier to manage outputs and added an options dialog for changing project settings.
      * Made it so that files being generated from a CodeSmith Project are checked out of source control before being edited.
      * Improved the custom tool upgrade process so that it works 100% in all scenarios without having to make manual changes afterward.
      * CodeSmith Projects can now add files to Visual Studio as code behind files to other generated files.
      * CodeSmith Projects can now set a generated files build action.
      * Added ability to resolve assemblies located in paths relative to the template now using Path attribute.  Looks in template folder and \bin folder by default.
      * Optimized template caching algorithm allows for much improved performance.
      * Templates use partial classes now so you can have partial class code behinds and have access to template properties from the code behind file.
      * Added template metadata caching.
      * Added GetPropertyAttribute and SetPropertyAttribute to CodeTemplate.
      * Property attribute values are added for any non-recognized attributes on Property, XmlProperty and CodeTemplate directives.
      * Made all SchemaExplorer objects serializable.
      * Fixed bug with refreshing SchemaExplorer objects where it would not show all extended properties of the object after refresh.
      * Re-organized all sample templates and projects into a more logical folder structure.
      * Added new NHibernate templates in both C# and Visual Basic.
      * Made various improvements to the Plinqo templates.
      * .netTiers updated to the 2.3 Beta version of the templates.
      * Added VB versions of many sample templates and projects.
      * Added a couple new maps and ActiveSnippets.
      * Included the latest version of the NuSoft framework templates.

    Download Links Available Below:

    Professional: http://www.codesmithtools.com/download/codesmithprofessional-50-beta.msi
    Standard: http://www.codesmithtools.com/download/codesmithstandard-50-beta.msi
    Zip: http://www.codesmithtools.com/download/codesmith-50-beta.zip 

    CodeSmith 5.0 Public Beta Announcement

  • CodeSmith 4.1.4

      * Fixed a content encoding issue in the CodeSmith Studio start page.
      * Fixed a bug in the SQL schema provider that was preventing some default parameter values from being parsed.
      * Fixed MySQL schema provider to use any version of the MySQL binaries.
      * Various bug fixes.

    Download Here

  • CodeSmith 4.1.3

      * Various improvements to the Plinqo templates.
      * Made some improvements to the StringUtil.ToPlural and StringUtil.ToSingular methods.
      * Save all documents and projects before running the GenerateOutputs command.
      * Fixed a rare CodeSmith Studio crash when loading additional files outside of th IDE.
      * Added SqlNativeType-SqlDbType.csmap.
      * Added Stack Trace to error messages resulting from attempting to generate a project.
      * Updated to the latest version of the syntax editor control which fixes several issues.
      * Changed CodeSmith engine to use the application / system configuration to figure out which CodeDOM provider to use.  This makes it possible to use other template languages.
      * Fixed a bug with the default parameter regex in SqlSchemaProvider not recognizing parameters defined with the AS keyword.

    Download Here

  • CodeSmith 4.1.2

      * Fixed issue with CodeSmith Project files in some Visual Studio configurations that was crashing during generation.
      * Added CS_ObjectID extended property to tables, views, and commands.
      * The PLINQO templates have been updated with several enhancements and bug fixes.

    Download Here

  • CodeSmith 4.1.1

      * Updated LINQ templates to work with Visual Studio 2008 Beta 2.
      * Added a Close All But This menu to the document tabs and File menu.
      * Fixed bug in CodeSmith Studio that was assuming that a user wouldn't rapidly open multiple documents or change documents while compiling.
      * Fixed crash in AddOutput when template fails to compile.
      * Fixed error message when reading metadata from project in Visual Studio Package.

    Download Here

  • CodeSmith 4.1.0

      * Changed CodeSmith to auto refresh property values every time a template is run except inside CodeSmith Studio where there is an option to enable this behaviour.
      * Added new "Auto refresh properties" option to CodeSmith Studio that will cause properties to refresh their values before every run.
      * Added new "Refresh Properties" button to the property grid in CodeSmith Studio to force a property value refresh.
      * Added new PropertyRefresher attribute that can be used to specify how CodeSmith should refresh a property's value.
      * Added new RefreshProperties method to CodeTemplate used to force the properties on a template to refresh their values.
      * Added PropertyRefresher support to all SchemaExplorer objects.
      * Added PropertyRefresher support to XmlProperty.
      * Added support for Visual Studio 2008 (Orcas).
      * Added NoWarn attribute to CodeTemplate to allow ignoring warnings.
      * Added new Linq to Sql templates.
      * Added new APOSA templates for the book "Advanced Patterns of Enterprise Architecture".
      * Added a new IDbConnectionStringEditor interface to SchemaExplorer for providers to support connection string editing.
      * Added support for the new IDbConnectionStringEditor interface to the SqlSchemaProvider.
      * Added support for the new IDbConnectionStringEditor interface to the ADOXSchemaProvider.
      * Added Indexes and Keys to the SchemaExplorer tool window in CodeSmith Studio.
      * Added OracleSchemaProvider to CodeSmith installation. (Thanks to Geoff McElhanon)
      * Added MySQLSchemaProvider to CodeSmith installation. (Thanks to David Neal)
      * Added source code for the SqlSchemaProvider to the sample projects folder.
      * Added a MapSample.cst template.
      * Added some merge sample templates.
      * Fixed bug where self referencing foreign key was not being correctly added to the PrimaryKeys collection.
      * Fixed null reference bug in SqlSchemaProvider GetExtendedProperties.
      * Fixed ActiveSnippets bug that was throwing an exception when the user deletes all the templates and clicks OK.
      * Fixed a bug in the CommandWrapperClass.cst template.
      * Fixed a bug that was causing TableSchema to not refresh correctly after calling Refresh.
      * Fixed a bug in the Visual Studio package that was causing the trial license to be shown before any CodeSmith functionality was accessed.
      * Fixed bug in the ActiveSnippet configuration form that caused Visual Studio to crash.
      * Fixed bug with SchemaExplorer control where data sources were not being refreshed correctly.

    Download Here

  • CodeSmith 4.0.4

    * Updated to DockableWindow 2.0.209 to fix a docking window issue under vista aero.
    * Changed SqlSchemaProvider to properly pull back varchar(max) and other data types in SQL 2005 for command parameter data types.
    * Fixed a bug in CSMAP's where they would sometimes not use the correct map settings.
    * Fixed a licensing bug introduced with 4.0.3.

    Download Here

  • CodeSmith 4.0.3

    * Added several new map files for various type conversions.
    * Fixed issue with the Standard trial install acting like the Professional version.
    * Fixed bug in the SampleCustomProperties sample project causing the property values to not restore.

    Download Here

  • CodeSmith 4.0.2

      * Corrected a versioning issue.
      * Fixed a form layout bug.

    Download Here

  • CodeSmith 4.0.1

    * Fixed some bugs in the API help where member return types and names weren't being displayed.
    * Made it so that the sysdiagram tables are ignored in SqlSchemaProvider.
    * Fixed a bug in XmlProperty when using the RootElement attribute.
    * Fixed a bug that was causing CodeSmith to not work in configurations where the my documents folder was a UNC path. 
    * Fixed a licensing bug in CodeSmith Standard that was not allowing the console client to be used on .csp files.
    * Fixed a couple other minor internal bugs.

    Download Here

  • CodeSmith 4.0

    CodeSmith 4.0 has been released today at the Dev Connections conference in Las Vegas. Here are just a few the new capabilities in CodeSmith 4.0:

    • CodeSmith Projects (.csp) - This feature makes automating your code generation process really easy and consistent whether you are working from inside of Visual Studio 2005, MSBuild, Windows Explorer, a command line / batch file, or CodeSmith itself.
    • ActiveSnippets - Imagine Visual Studio 2005 snippets, but with the full power of CodeSmith available to execute any logic or access any complex metadata (including database schema and xml data) to control the output of your snippets.
    • CodeSmith Maps (.csmap) - This feature will allow you to create dictionary style maps of things like SQL to C# data type mappings.
    • .NetTiers 2.0 - The .netTiers templates have been greatly enhanced and included with CodeSmith 4.0.
    • Extended Property Management - You can now edit and add new schema extended properties inside of CodeSmith Studio.
    • Property Persistence - CodeSmith now remembers the property values from the last time you executed a template.
    • CodeSmith Studio - Improved IntelliSense and improved overall performance.  

    Official Press Release is at http://community.codesmithtools.com/blogs/announcements/archive/2006/11/08/CodeSmith40Released.aspx

    * Added ctrl-space support to Studio.
    * Add support for .csp in web projects.
    * Fix bug where .csp files didn't work in the solution items project.
    * Studio semantic parser changes to improve performance.
    * Make semantic parsing work better in code behind files.
    * XmlProperty now shows as a file name in the property grid and can be modified.
    * User's Guide has been updated to document the new CodeSmith 4.0 features.
    * Added ContextData to CodeTemplate.  Made it so that ContextData is passed to sub-templates by default.
    * Added New \ CodeSmith Project context menu item to template explorer.
    * Changed the IPropertySerializer interface to use a PropertySerializerContext now so that it can get access to the object instance and so that new information can be added to it in the future without breaking things.
    * Added a TemplateState.Initializing to CodeTemplate which is the state that a CodeTemplate will be in while it is being constructed/initialized.
    * Performance improvements in SqlSchemaProvider by optimizing some of the SQL and moving everything to parameterized SQL.
    * Updated the Tip of the Day contents.
    * Made it so that if an empty .csp file is opened, it will create a blank project instead of crashing.
    * Updated to the latest Actipro controls which includes numerous bug fixes and improvements.
    * Fixed a bug in the sproc text template.
    * Made CodeSmith Studio the default editor for .cst files in Visual Studio.
    * Fixed the 64bit licensing issue.
    * Changed the Petshop sample connection string to specify Initial Catalog so that the database name isn't a long file path.
    * Fixed a deadlock issue in TextBoxWriter and made it async.
    * Made UNC paths work in the MRU list on the start page.
    * Removed the user / machine name from the bug report information.
    * Various bug / crash report service improvements.
    * Made it so that hyperlinks with & and # in them are recognized in Studio.
    * Fixed a bug in SqlSchemaExplorer that was returning duplicate table columns on fields with multiple constraints.
    * Added tooltips to the MRU items in the start page.
    * Fixed a bug with the Add button on the manage outputs dialog being disabled in professional mode.
    * Fixed a bug where changing a folder name outside of template explorer and then doing something with that folder in template explorer would cause a crash.

    Download Here

Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems