Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Helper is not supported #8

Closed
Tychodewaard opened this issue Jul 17, 2019 · 1 comment
Closed

Helper is not supported #8

Tychodewaard opened this issue Jul 17, 2019 · 1 comment

Comments

@Tychodewaard
Copy link

In Visual studio Code, I get an error : The helper directive is not supported.
This refers to :

  • nav
  • main
  • template.cshtml
  • line 6:
    @helper RenderNodes(IList<MenuNode> nodes) {
@iJungleboy
Copy link
Contributor

In this case VS Code assumes you're using a very new version of razor, which removed that. But in the MVC of DNN this is correct. So either just ignore the error, or find out how to specify an older version of razor for this.

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

No branches or pull requests

2 participants