You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: