That compilation works in Console Application and in one my test Windows Service, but fails in another Windows Service.
(but e.g. simple template like: @Model.Name works)
The generated source code is the same, but in Windows service I get TemplateCompilationException with many errors ( "} expected", "Type expected", "Invalid token...", etc).
Is possible that I'm missing some dependencies or is there some conflict with other references?
Hello,
I have problem with Template.Compile() method.
My template looks like:
@foreach (var event in Model.Events){- @event.Name
}
That compilation works in Console Application and in one my test Windows Service, but fails in another Windows Service. (but e.g. simple template like: @Model.Name works)
The generated source code is the same, but in Windows service I get TemplateCompilationException with many errors ( "} expected", "Type expected", "Invalid token...", etc).
Is possible that I'm missing some dependencies or is there some conflict with other references?