NuGet Error NU5031

The license file 'LICENSE.txt' has an invalid extension. Valid options are .txt, .md or none.

Issue

Only the listed file extensions are allowed.

Solution

Use a file extensions from the allowed list.