Developer forum

Forum » Development » C#6 in Razor templates

C#6 in Razor templates

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

Is C# 6 and later support in Dynamicweb's Razor templates? I followed the steps documented here: https://stackoverflow.com/questions/33822854/using-nameof-operator-in-razor-views (installed the package Microsoft.CodeDom.Providers.DotNetCompilerPlatform and updated the web.config, but it seems I still can't use newer concepts like nameof.

Is this supposed to work? If so, happy to dig further myself to see what it takes to make it work.

Imar


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer
It is currently not supported, but it has been added to the backlog: TFS#40286
 
/Morten
 
Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Perfect, that's good to know.

Thanks!

 

You must be logged in to post in the forum