CodeSmith Generator Changelog

What's new in CodeSmith Generator 8.0.1 Revision 15459

Aug 23, 2017
  • New Features:
  • Added support for C# 6 and VB 14 language features.
  • Added support for .NET 4.7. You can now reference .NET 4.7 assembly references.
  • Added support for Visual Studio 2017. Visual Studio support can be installed as a VSIX from the Visual Studio marketplace and can be automatically updated.
  • Added official CodeSmith Generator NuGet packages for SDK scenarios.
  • Added new CodeSmith.Generator.Task NuGet package which enables generate on build functionality. This package also includes the cs.exe command line executable as well.
  • Added the ability to specify a license key via the Generator:License environment variable or in code CodeSmithLicense.SetLicenseKey(key). Allows for easy build server and CI usage.
  • Added High DPI support.
  • Added support for JavaScript merge regions.
  • Added support for <code> blocks to be used in doc comments to support rendering of code snippets within a summary section.
  • Added support for newer snippets that could contain shortcuts that begin with the # character.
  • Bug Fixes:
  • Fixed various colorization issues with the Visual Studio Editor.
  • Fixed breaking issue where non blocked if statements wouldn’t be rendered correctly.
  • Fixed an issue where Template Editor would no longer work after using an SDK application.
  • Improved the IntelliPrompt for properties to include accessors, making it possible to see whether a property is read-only.
  • Improved Property Grid editing experience for Byte, Date, Int16, Single and Time data types.
  • Improved document tab management with Pin Document, Close All Documents and Close Other Documents when right clicking on a document tab.
  • Improved document docking to be much more flexible.
  • Updated cut/copy/paste/drag/drop editor actions to all support block and full line flags compatible with Visual Studio.
  • Fixed a bug where a document with many sequential whitespace lines and indentation guides visible could affect editing performance.
  • Fixed a bug in certain cultures where negative numbers using currency format wouldn’t display properly.
  • Fixed a few theme rendering issues that could occur on Windows 10.
  • Updated User interface components to work better with mouse, touch, pen and other input devices.
  • Updated the DB2zOSSchemaProvider to support newer versions of DB2 (> 10.1).
  • Updated all samples.
  • Many more minor bug fixes and performance improvements.
  • Breaking Changes:
  • The installer no longer contains MSBuild support or Visual Studio Integration. If you are getting an error about a missing targets file, you’ll need to either remove the targets file from the project file or right click on your CodeSmith Generator Project File and under options remove Generate on Build and reenable it. This will remove the old targets file which is invalid and install the CodeSmith.Generator.Task NuGet package which will enable the Generate on build support.

New in CodeSmith Generator 7.1.0 Revision 15317 (Aug 11, 2015)

  • New Features:
  • Added support for Visual Studio 2015.
  • Added SchemaSelector to allow easier selection of schema objects.
  • Added new TypeScript templates.
  • Bug Fixes:
  • Updated SqlCodeTemplate to handle new SQL Server native types.
  • Fixed a bug where multiple unrelated dialog editors couldn't be used in the propertygrid.
  • Fixed a bug where the SQLAnywhereSchemaProvider didn't differentiate functions from stored procedures.
  • Fixed a bug where the Visual Studio General window could be removed.
  • Fixed a bug where The Visual Studio addin may throw an exception when saving user preferences.
  • Many more minor bug fixes.

New in CodeSmith Generator 7.0.2 Revision 15174 (Sep 24, 2014)

  • New Features:
  • Added a new SQLAnywhereSchemaProvider (Contrib Steven Hyde).
  • Added Gang of Four Design Pattern templates (Contrib Martin Hart Turner).
  • Added support for json serialization of schema objects (E.G., TableSchema) for custom property types.
  • The PLINQO-EF templates now have beta support for MySQL and SQL Anywhere and EF6 (there is a flag to turn EF6 generation on in the templates).
  • Bug Fixes:
  • Fixed a bug where project file default properties were not applied in some scenarios.
  • Fixed a bug where the protected keyword wasn't specified in the CSharpKeywordEscape mapping file.
  • Fixed a bug where map directives with a relative source path may not be resolved properly.
  • Fixed a bug where the CodeTemplate State property was not being properly set when generating from a project file.
  • Fixed a bug where xml properties wouldn't be created on the CodeTemplate instance if a schema file path was not specified.
  • Fixed a bug where the PostgreSQLSchemaProvider could return duplicate view columns.
  • Various updates to the PLINQO and CSLA Frameworks.
  • Many more minor bug fixes.
  • Usability Enhancements:
  • Many usability improvements and bug fixes were made to improve the editor, docking and property grid experiences.
  • Fixed a bug where the dark theme was not being displayed properly in Visual Studio 2013.
  • Fixed a bug where template errors would not be shown in the Visual Studio error window.

New in CodeSmith Generator 7.0.1 Revision 15136 (Jun 23, 2014)

  • Fixed an issue with case sensitive databases in SqlSchemaProvider.
  • Fixed a bug where an exception would be thrown when trying to access Extended Properties when using SQL Azure with the SqlSchemaProvider.
  • Fixed a bug where Visual Studio integration could fail due to an assembly binding failure.
  • Many more minor bug fixes.

New in CodeSmith Generator 7.0.0 (Jun 23, 2014)

  • Added the ability to control the current theme from Generator Explorer.
  • Added the ability to reset the docking layout from Generator Studio.
  • Added the ability to open the options dialog from Generator Explorer.
  • Fixed a bug that was preventing Template Explorer to be themed in some circumstances.
  • Fixed a bug where a crash could occur when trying to regenerate a saved generated document.
  • Fixed a bug where template and generated documents were not being opened or saved with the correct encoding.
  • The CodeTemplate ResponseEncoding attribute has been depreciated as it doesn't make sense to have two encoding attributes. We will continue to fallback to any defined ResponseEncoding attribute values for backwards compatibility.
  • Fixed a bug where a reloaded source document from disk could be shown as an empty document.
  • Fixed a bug where fixed template errors would not be removed from the error window until the template was recompiled.
  • Fixed a bug where template errors were not being highlighted for in memory documents.
  • Fixed a bug where StringUtil ToPlural and ToSingular methods were not respecting the input strings casing.
  • Fixed a bug where StringUtil IsPlural and IsSingular methods returned incorrect results if the input was not lower cased.
  • Added method overloads to StringUtil IsPlural and IsSingular that allows you to specify a plural overrides MapCollection.
  • Updated the SQLAnywhereSchemaProvider to also return user database tables and views.
  • Many more minor bug fixes.

New in CodeSmith Generator 7.0.0 Beta (Jun 23, 2014)

  • Added support for VS 2013.
  • Added support for SQL Azure.
  • Added bracket matching functionality to the Template Editor.
  • Added support for a native Windows 8 metro theme.
  • Added support for Delimiter Auto-Complete and Curly Brace Auto-Indent.
  • Added IntelliSense support for Array Indexers, Xml and XSD files.
  • Added IntelliSense support for the new C# 5.0 and VB 11.0 syntax. Please note that templates are still compiled as .NET 4.0. If you wish to use the async / await functionality, you must add a template reference to Microsoft.CompilerServices.AsyncTargetingPack.
  • Added the ability to Control+Click to go to definition including support for the ability to open code behinds.
  • Added 13 Bootstrap 3.0 ActiveSnippets.
  • Added a new TypeScript ActiveSnippet that will generate TypeScript classes from a json document.
  • Server License now allows access to the user interface components.
  • Major usability improvements to the Find and Replace dialogs.
  • Improved performance of parsing templates. Some very large templates can see up to a 2500% improvement. NetTiers parsing is 30% faster.
  • Added support for Format Document and Format Selection.
  • Added Syntax Highlighting for the following Languages: Assembly, INI, Lua, Markdown, MSIL, PowerShell, Ruby, RTF, VBScript, XAML.
  • Added file extension mapping for the following file types: ColdFusion, CoffeeScript, Command, Dart, Erlang, F#, JSON, LESS, TypeScript, XSD and XSLT.
  • Added the ability to open recent files from within the Generator Studio File menu.
  • Added the ability to open the properties window using the F4 key inside of Studio.
  • Added SchemaExplorer to the default list of assembly references for code behind files.
  • Added the ability to consume merged MapCollections. StringUtil.ToPlural() and StringUtil.ToSingular() now use merged a MapCollection.
  • Fixed a backwards compatibility bug where a template would not compile if the file name started with a digit.
  • Updated the default file extensions that a document could be created with based on the valued defined in the templates TargetLanguage attribute value.
  • Improved IntelliSense support in many areas including code snippets.
  • Updated the code navigation drop downs by adding support for modifiers, method parameters and property parameters.
  • Fixed a bug where the DataObjectBase.FullName property was only returning the Name (E.G., ColumnName) value. FullName now includes the owner information (E.G., Owner.Table.ColumnName).
  • Improved the startup time of the Generator Studio and Visual Studio integration.
  • Fixed a performance bug in SqlSchemaProvider.
  • Fixed a threading bug in SqlSchemaProvider where an incorrect major version number could be returned causing the wrong script to be executed.
  • Updated the find next dialog to behave like the Visual Studio Find dialog (F3 keyboard support, Escape to close and more).
  • Fixed a bug where Property Directive descriptions do not appear in IntelliPrompt.
  • Fixed a bug where the Editor font and colors would be displayed incorrectly after changing the Visual Studio theme in Visual Studio 2012 and 2013.
  • Fixed a bug where the execute template dialog would allow a user to generate a template that was unable to compile.
  • Fixed a bug where Quick Info and IntelliPrompt fonts were displayed incorrectly.
  • Fixed a bug where the Template Editor would not receive focus when switching between documents.
  • Fixed a bug where renaming a file in Template Explorer did not update the file path inside of the template editor.
  • Fixed a bug where tabs inside of Template Editor did not properly display the files read-only status.
  • Fixed a bug where an Unauthorized Access Exception could be thrown when trying to save a generated document.
  • Fixed a bug where calling the Save method on MapCollection was not ensuring that the directory was created before saving the file to an invalid file path.
  • Fixed a bug where an XmlProperty with invalid XSD schema's would throw an unhandled exception.
  • Fixed a few bugs where the Indention features would not work as expected.
  • Fixed a bug where the Property Grid could throw an exception when the multiply key was pressed.
  • Fixed a bug where a Generator Project File could be saved with the incorrect file extension if the file name contained a period.
  • Fixed a bug where the Template Explorer wouldn't automatically refresh in some scenarios.
  • Fixed a bug where calling SaveAs multiple times on a single document would cause Generator Studio to become unresponsive.
  • Fixed a bug where the DB2zOSSchemaProvider would only return views if the FilterViews property was specified in configuration.
  • Fixed a bug where ActiveSnippetConfiguration may not be initialized when a new instance of ActiveSnippetGenerator was created.
  • Fixed a bug where MapCollection.ToString() returned an empty string instead of the actual content.
  • Fixed a formatting bug where PropertySet.ToString() wasn't being indented.
  • Fixed various bugs with StringUtil where IsPlural, IsSingular, ToSpacedWords was not handling null or empty strings properly.
  • Fixed a bug where StringUtil ToPascalCase and ToCamelCase methods were not returning the correct results for strings that contained single character words (E.G., a_b_c_MyMethod).
  • Many more minor bug fixes.
  • Updated the PLINQO and CSLA Frameworks to target .NET 4.5 and VS 2012/2013.

New in CodeSmith Generator 6.5.6 (Jun 23, 2014)

  • Fixed a bug in xheo licensing component that caused licensing issues after upgrading Windows to version 8.1.

New in CodeSmith Generator 6.5.5 (Jun 23, 2014)

  • Updates to the Customer Improvement Program.

New in CodeSmith Generator 6.5.4 (Jun 23, 2014)

  • Fixed a bug where SaveAs would cause the editor to become unresponsive when saving code behind files.
  • Fixed a bug where Find in current document was not working in Visual Studio 2012.
  • Fixed a bug where Go To Line wasn't working on Visual Studio 2012.
  • Fixed a bug where SchemaExplorer objects may not be refreshed properly.
  • Fixed a bug where database schema information may be retrieved twice while restoring template properties from a CodeSmith Generator Project file.
  • Fixed a bug where CommandSchema Functions saved in a CodeSmith Generator Project file would not be loaded.
  • Added the ability to escape a single quote in an attribute value using two quotes in a row (E.G., "").
  • Many more minor bug fixes.

New in CodeSmith Generator 6.5.3 (Jun 23, 2014)

  • Improved XmlProperty IntelliSense.
  • Fixed a bug where a NullReferenceException could be thrown when the XmlProperty Schema attribute value was empty.
  • Added the ability for the Server edition to consume the Generator API.

New in CodeSmith Generator 6.5.2 (Jun 23, 2014)

  • Added beta support for Visual Studio 2012 themes.
  • Fixed a bug where the Template Editor font size would be displayed incorrectly inside of Visual Studio 2012.
  • Fixed a bug where the Visual Studio 2012 snippets were not being detected by the Template Editor.
  • Fixed a bug where templates weren't being loaded from cache in some circumstances.
  • Fixed a bug where the returned ComplileTemplateResult.IsFromCache could return an incorrect value.
  • Fixed a bug where the the Base Sample Directory could be set to an incorrect value.
  • Updated the IEngineHost interface's GetContent methods to accept an optional parameter overload that controls how content is returned (from source or from memory).
  • Fixed a bug where templates template code's background color wasn't being shown if you didn't have MVC 3.0+ installed. This is now falls back to the 'Highlighted Reference' font and color settings.
  • Fixed a bug where SqlCodeTemplate was treating any column that ended in TypeCode as an enumeration.
  • Fixed a bug where the Visual Studio MSBuild integration wasn't displaying messages in the output window.
  • Fixed a bug where the progress bar could show 100% after generating through Manage Outputs in Visual Studio.
  • Fixed a bug where an error would be thrown when attempting to compile the a specific template on multiple processes at the same time.
  • Fixed a bug where the Template Editor would show invalid parse error messages for Visual Basic templates that contain XmlProperties.
  • Many more minor bug fixes.

New in CodeSmith Generator 6.5.1 (Jun 23, 2014)

  • Added DB2 zOS Schema Provider (contrib. David Logan and Blake Niemyjski).
  • Added the ability to change a templates template code's background color.
  • Added the ability the ability to disable or enable current line highlighting.
  • Added a new whitespace collapsing rule to collapse the last line terminator node if there is only collapsible nodes after it.
  • Fixed a bug where the update file associations dialog could be hidden behind other windows.
  • Fixed a bug where Visual Studio template editor syntax highlighting styles could be improperly applied.
  • Fixed a bug where an exception would be thrown when adding a new XmlProperty to a template.
  • Fixed a bug where the Find and Replace tool windows Find button could be disabled in Generator Studio.
  • Fixed a bug where some legacy UITypeEditors would not be shown in the Property Grid.
  • Fixed a bug where the about dialog would be rendered incorrectly on localized versions of Windows.
  • Fixed a bug in the ISeriesSchemaProvider where Primary keys may not be resolved correctly.
  • Fixed a bug where a run-time exception would occur when opening Generator Studio or Template Explorer on Windows XP/ Server 2003 over Remote Desktop.
  • Updated ExtendedPropertyNames to support even more extended property names.
  • Updated the installer to verify that Visual Studio has been closed before installing.
  • Updated the installer to add read / write permissions for the user's template samples folder.
  • Fixed a bug where an exception could occur when doing a Go To Definition operation on a Lambda expression.
  • Fixed a bug where samples could be extracted at the same time in different processes.
  • Fixed a bug where an Exception could be thrown while extracting samples over samples that previously failed to extract.
  • Many more minor bug fixes.