Currently my razor view engine throws and error saying \"Please use language version 6 or higher\". That may just be resharper giving me a pointer. But how do i make razor u
If you are running this from a 4.5.1 project, upgrading to 4.5.2 might fix it.
Otherwise, it is recommended to install this NuGet package to provide the new functionalities: Microsoft.CodeDom.Providers.DotNetCompilerPlatform
So doing something like this:
@Model.Person?.Name
Might work. If it doesn't, try being explicit like this:
@(Model.Person?.Name)