dotnet / dotnet/docs

Some guidance to enable NRT for library that is compatible with .NET and .NET Framework

Open
#37,147 1 comment 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

I search some guidance to enable NRT (nullable reference type) in my library, but I found nothing in [Library guidance](https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/).

I found this blog post [Embracing nullable reference types](https://devblogs.microsoft.com/dotnet/embracing-nullable-reference-types) that have guidance, but it is from 2019. This is old and this guidance can be obsolete.

---

I would love to see a guidance in the doc to explain how enable NRT in a library that need to be compatible with .NET Framework and .NET.

If the below blog post is still relevant, I can help and make a PR.

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: b466e1d8-f9fc-6a4b-50a3-a101e5ea9907
* Version Independent ID: ccf98d0b-d65c-522a-a944-e58d60adbee8
* Content: [Get started creating high-quality .NET libraries - .NET](https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/get-started)
* Content Source: [docs/standard/library-guidance/get-started.md](https://github.com/dotnet/docs/blob/main/docs/standard/library-guidance/get-started.md)
* Product: **dotnet-fundamentals**
* GitHub Login: @JamesNK
* Microsoft Alias: **jamesnk**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.