Azure / Azure/Azure-Functions

Can't use Razor as a template engine in Azure Functions v2 (.NET Core)

Open
#1,138 40 comments 3 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Hi folks,

I've uploaded two samples: a .NET Core 2.2 Console App and Azure Functions v2 (.NET Core). Both examples using Razor as a template engine. Console applications works fine:

![image](https://user-images.githubusercontent.com/1729519/53694073-b3fd4c80-3da9-11e9-8a68-e1fb908da569.png)

Azure Functions v2 doesn't work:

![image](https://user-images.githubusercontent.com/1729519/53694076-c7101c80-3da9-11e9-8cb2-0f20c9981acd.png)

I've tried many things but I'm not be able to find the problem. Any ideas?

[Projects.zip](https://github.com/Azure/Azure-Functions/files/2923012/Projects.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.