NuGet Error NU5033

Invalid metadata. Cannot specify both a License Expression and a License File.

Issue

The PackageLicenseExpression and PackageLicenseFile properties are mutually exclusive.

Solution

Use one or the other. If you are using a well known license that's part of the standard license list, consider using an expression. Otherwise please use a license file.