Skip to main content

Dnn Roslyn Compiler for C# 8

Dnn supports C# 5 in Razor out-of-the-box and provides an option to install C# 8.
2sxc 17 requires C# 8 with the Roslyn compiler. In Dnn it's in a library called CodeDom.

Dnn 10+

Dnn 10 will come with latest CodeDom pre-installed, so you don't have to do anything. 

Dnn 9.09+

If you have Dnn 9.11 or newer, you can install it directly from Dnn using these instructions.

Dnn 9.06.01+

If you have a Dnn 9.6.1 or newer, the bundeled CodeDom is too old for 2sxc. Fortunately the normal CodeDom included in the newer Dnn installs without a problem. So you have two options:

  1. Download it here and install the extension
  2. Manually extract it from the official Dnn Releases and then install it

Linking this Page

Always use the shortlink https://r.2sxc.org/dnn-roslyn as the page may move.