dotnet-architecture / eshop-mobile-client

eShop mobile & desktop client built with .NET MAUI

Home Page:https://dotnet.microsoft.com/learn/maui/architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can nullable reference types be enabled in this project?

hollowdrutt opened this issue · comments

All project templates starting with .NET 6 (C# 10) enable the nullable context for the project. Projects created with earlier templates don't include this element, and these features are off unless you enable them in the project file or use pragmas.
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/nullable-reference-types

It would be nice if the reference applications showed how to use nullable reference types as it is the default setting in the latest project templates.
eShopOnContainers.UnitTests/eShopOnContainers.UnitTests.csproj has nullable set to enable, but eShopOnContainers/eShopOnContainers.csproj does not.

Basically same issue as: dotnet-architecture/eShopOnContainers#1681