Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cshtml file with model in console app #595

Open
sybaris opened this issue May 15, 2023 · 0 comments
Open

cshtml file with model in console app #595

sybaris opened this issue May 15, 2023 · 0 comments

Comments

@sybaris
Copy link

sybaris commented May 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant