Skip to content

Commit 7973c9c

Browse files
fix: Add #nullable enable directive to _Layout.cshtml
Fixed nullable reference type annotation error by adding explicit #nullable enable directive at the top of the Razor file. This is required for auto-generated Razor code that uses nullable reference types.
1 parent ad6481a commit 7973c9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

EssentialCSharp.Web/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#nullable enable
12
@using EssentialCSharp.Web.Extensions
23
@using System.Globalization
34
@using EssentialCSharp.Web.Services

0 commit comments

Comments
 (0)