Add option for generating nullable property in csproj
See original GitHub issueIs your feature request related to a problem? Please describe. If you want to use nullable reference types after C#8.0 you either have to manually add the
<Nullable>enable</Nullable>
property to enable nrt or you have to annotate each file with
#nullable enable
Describe the solution you’d like In the settings there should be an option for adding the Nullable property when adding the desired LangVersion property. One problem might be is when you want only some projects to have the Nullable property but that would require porject-by-project settings which are as of yet not supported anyway.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Design with nullable reference types
Create the application and enable nullable reference types ... Open the .csproj file and add a Nullable element to the PropertyGroup element ...
Read more >How to enable Nullable Reference Types feature of C# 8.0 ...
To enable Nullable Reference Types feature for the .NET Core project, add NullableReferenceTypes property to the .csproj file like this:
Read more >Understanding nullable reference types | C# 8 and .NET ...
Nullable reference types are an opt-in feature (that is, you have to explicitly turn it on) that simply gives a warning to say...
Read more >Getting Started on Nullable Reference Types
The nullable reference types can be enabled by setting the Nullable element to value “ enable ” in the CSPROJ file. In fact,...
Read more >Resolve Non-nullable Property Must Contain a Non-null ...
When compiling a C# application, we may see the warning “Non-nullable property must contain a non-null value when exiting constructor.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
All nullable parameters were supported! (1.3.0)
You are doing an amazing work! Next time I will try to open a pull request as well 😉