Skip to content

Template.Compile fails #11

Description

@SiccoOne

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions