Skip to content

cshtml file with model in console app #595

@sybaris

Description

@sybaris

Hi

I am using RazorEngine in a console application 4.6.2 .Net framework.
If I put my template in a cshtml file (I want to embed this file as ressource), I have the following error at build time :
"The name 'Model' does not exist in the current context"

If I put my template in a string varibale (no cshtml file), I don't have the problem.

Regards
Sybaris

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