Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Unassigned: The type '..' must be a non-nullable value type [134]

$
0
0
After adding some views to my common views library, and configure the custom tool 'RazorGenerator', there are some classes generated that give some build errors:

```
The type 'Prodigy.Web.CommonViews.Views.Shared.EditorTemplates.DateTime' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'System.Nullable<T>' D:\TeamFS\Prodigy\Framework\Dev\Prodigy.Controls\Prodigy.Web.CommonViews\Views\Shared\EditorTemplates\Time.generated.cs
```

The code where the error is looks like:
```
public partial class DateTime : System.Web.Mvc.WebViewPage<DateTime?>
```
The view is:
```
@model DateTime?

@(Html.Kendo().DatePickerFor(m => m).Format("dd-MM-yyyy"))
```

Note: we use the Kendo.Mvc control library from Telerik.

Comments: @pranavkm, I did install version 1.6.2 of the Razor Generator Extension from within Visual Studio 2013 (so the Vsix).

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>