-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opt-in Nullable Reference Types by default in templates #4138
Comments
|
cc: @terrajobst @cartermp -- I believe this is the plan for .NET 5, or am I miss remembering? |
This is the tentative plan, yes. But that is all going to depend on how we feel about the experience w.r.t first-party and third-party annotations and editor tooling. |
Curious what the status on this is? It still seems to lack the feature by default. Edit: Possibly pushed to .NET 6 - though it's not an official statement |
@jaredpar can you give an update here? |
This was implemented in #3359, suggesting to close - let me know if you have any objections. |
Thanks @vlada-shubina! |
Opt-in Nullable Reference Types by default
Nullable Reference Types
is a significant feature to decrease the possibility of bugs and it can improve robustness.People who don't follow the Microsoft DevBlogs even don't know the existence of this feature, why not opt-in this feature in
dotnet new
template by default? If it was opted-in by default, new projects will consider the nullable issues, and in the future, most projects will not face the unexpected NullableReferenceException.Solution
Make all existing templates in
dotnet new
opt-in Nullable Reference Types by default.The text was updated successfully, but these errors were encountered: