CodeSmith files needed for SDK in release 5.1.2.8409 - General - Support Forums - CodeSmith Community
Welcome to the CodeSmith Community!

CodeSmith files needed for SDK in release 5.1.2.8409

Support Forums

A description has not yet been added to this group.

CodeSmith files needed for SDK in release 5.1.2.8409

Answered (Verified) This question is answered

Our DSL Tool uses CodeSmith with an SDK license to generate code.  Previously, the following DLLs were required to run CodeSmith using the SDK:

  • CodeSmith.Engine.DLL
  • SchemaExplorer.DLL
  • System.Data.SQLite.DLL

I have noticed that version 5.1.2.8409 requires CodeSmith.Feedback.Client.DLL (version 1.0.0.8621); however, I am still getting an error when trying to compile my CodeSmith templates using the CodeSmith API:

TypeInitializationException while generating code: The type initializer for 'CodeSmith.Engine.CodeTemplateCache' threw an exception.
   at CodeSmith.Engine.CodeTemplateCache.get_Instance()
   at CodeSmith.Engine.CodeTemplateInfo.EnsureTemplateInfo()
   at CodeSmith.Engine.CodeTemplateInfo.get_ContentHashCode()
   at CodeSmith.Engine.CodeTemplateInfo.GetHashCode()
   at CodeSmith.Engine.CodeTemplateCompiler.Compile(String outputPath, Boolean forceRecompile)
   at CodeSmith.Engine.CodeTemplateCompiler.Compile()
   at Cambridge.Framework.Domain.Metadata.CodeEngine.CodeSmith.CodeGenerator.RunCodeGenerator(String domainFile, IProjectStructure projectStructure)
   at Cambridge.Framework.Domain.Metadata.CodeEngine.CodeSmith.CodeGenerator.LoadProjectAndGenerateCode()
   at Cambridge.Framework.Domain.Metadata.CodeEngine.CodeSmith.CodeGenerator.GenerateCode(IVsSolution vsSolution, DTE2 dte, IVsUIShell uiShell)
   at Cambridge.Framework.Domain.Metadata.VSPackage.VSPackagePackage.GenerateCodeMenuItemCallback(Object sender, EventArgs e)

 

Are there other DLLs that we are missing when using the CodeSmith SDK?

  • Post Points: 35
Verified Answer
All Replies
Page 1 of 1 (7 items)