Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Nullable Type is not supported
YalexK
#1 Posted : Friday, August 9, 2019 8:50:45 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/22/2017(UTC)
Posts: 5
Location: United States of America

Quote:
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
Remco
#2 Posted : Friday, August 9, 2019 11:26:01 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,788

Thanks: 748 times
Was thanked: 961 time(s) in 916 post(s)
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?
YalexK
#3 Posted : Monday, August 12, 2019 12:38:34 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/22/2017(UTC)
Posts: 5
Location: United States of America

Yes. Visual Studio is building fine. Problem Seems to be around a generic class that is implemented with DateTime? as T
Quote:
Class<DateTime?>
I think NCrunch might be interpreting this as the newer C# with Nullable reference types.
Remco
#4 Posted : Tuesday, August 13, 2019 12:44:14 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,788

Thanks: 748 times
Was thanked: 961 time(s) in 916 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.025 seconds.