Generates a CodeSmith Generator Project file (.csp) based on the file path to the .csp and the .csp's file content.
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public bool GenerateCode( string xmlFilePath, string xmlFragment ) |
Visual Basic |
---|
Public Function GenerateCode ( xmlFilePath As String, xmlFragment As String ) As Boolean |
Parameters
- xmlFilePath
- Type: System..::..String
File path to the CodeSmith Generator Project file (.csp) file.
- xmlFragment
- Type: System..::..String
The content of the CodeSmith Generator Project file (.csp) file.
Return Value
Type: Booleantrue if the CodeSmith Generator Project file (.csp) was generated.