scriptsharp
scriptsharp copied to clipboard
Script.Literal causes code gen failure
When using a Script.Literal, code generation reports: Unable to resolve or open included file '%code%' when there is a curly bracket that is not part of a variable placeholder.
Your example in the other issue was actually useful... for anyone else who comes across this.
For the benefit of others, the string passed in into Script.Literal must be a valid format string passed in into String.Format... so if you need a "{" within the string, it needs to be escaped as "{{".