Build/Test Issues

Nullable Type is not supported

Started by YalexK on 1,938 views

http://www.ncrunch.net/documentation/troubleshooting_project-build-issues
obj\CodeGen\Views\Shared\EditorTemplates\DateTime.cshtml.cs (40, 106): The feature 'nullable reference types' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.


Where can I find this preview version?

Also item being referred to is a DateTime? Which is not part of the newer nullable ref types change in C# 8

Edited

Hi, thanks for posting.

This message is a bit misleading in that although NCrunch is reporting it, the message is actually coming from the compiler and we have very little to do with it.

Are you experiencing a difference in the compiler results between NCrunch and VS?
Yes. Visual Studio is building fine. Problem Seems to be around a generic class that is implemented with DateTime? as T
Class<DateTime?>
I think NCrunch might be interpreting this as the newer C# with Nullable reference types.

Edited

This could be a referencing error of some kind in disguise. Are you able to reproduce this in a sample project you can share with me? You can submit small code samples through the NCrunch contact form.

Post a reply

Log in to reply.