question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option for generating nullable property in csproj

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mob-sakaicommented, Nov 9, 2020

All nullable parameters were supported! (1.3.0)

1reaction
KuraiAndrascommented, Oct 22, 2020

You are doing an amazing work! Next time I will try to open a pull request as well 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found