You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ASP.NET runtime compiler defaults to an older version of the C# and VB.NET compilers. DNN includes a package which updates the compilers, but it isn't installed by default.
Description of solution
Install the CodeDOM provider package by default on installs and upgrades.
Description of alternatives considered
Continue to provide it as an optional package.
Anything else?
With the provider installed, this Razor script renders correctly, <h1>@(Dnn?.ActiveModule?.ModuleID)</h1>, whereas it gives an error without the provider being installed (because the ?. operator was introduced in C# 6, and the ASP.NET compiler only supports C# 5 by default).
This package is currently optional because previous versions of DNN found examples of installations failing on GoDaddy hosting, since the package installs csc.exe and vbc.exe into the bin folder. Our expectation is that testing for DNN 10 will reveal any incompatibilities with currently used hosting providers.
Do you be plan to contribute code for this enhancement?
Yes
Would you be interested in sponsoring this enhancement?
Yes
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
This is fantastic! I am strongly in favor of this and looking forward to no longer having to do this additional setup step after every DNN install. Cheers!!
Is there an existing issue for this?
Description of problem
The ASP.NET runtime compiler defaults to an older version of the C# and VB.NET compilers. DNN includes a package which updates the compilers, but it isn't installed by default.
Description of solution
Install the CodeDOM provider package by default on installs and upgrades.
Description of alternatives considered
Continue to provide it as an optional package.
Anything else?
With the provider installed, this Razor script renders correctly,
<h1>@(Dnn?.ActiveModule?.ModuleID)</h1>
, whereas it gives an error without the provider being installed (because the?.
operator was introduced in C# 6, and the ASP.NET compiler only supports C# 5 by default).This package is currently optional because previous versions of DNN found examples of installations failing on GoDaddy hosting, since the package installs
csc.exe
andvbc.exe
into thebin
folder. Our expectation is that testing for DNN 10 will reveal any incompatibilities with currently used hosting providers.Do you be plan to contribute code for this enhancement?
Would you be interested in sponsoring this enhancement?
Code of Conduct
The text was updated successfully, but these errors were encountered: