Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Can nullable reference types be enabled in this project? #27

Open
hollowdrutt opened this issue Aug 31, 2022 · 0 comments
Open

Can nullable reference types be enabled in this project? #27

hollowdrutt opened this issue Aug 31, 2022 · 0 comments

Comments

@hollowdrutt
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant