NuGet Hatası NU5049

The `pack` command for SDK-style projects is not supported, use `dotnet pack` or `msbuild -t:pack` to pack this project instead. You can override this behavior by setting the 'NUGET_ENABLE_LEGACY_CSPROJ_PACK' environment variable to 'true'.

Sorun

NuGet.exe paketi, SDK stili projeler için paketler oluşturmak için kullanılmamalıdır.

Çözüm

Bunun yerine veya msbuild -t:pack kullanındotnet pack. Eksik paketler oluşturduğundan eski csproj paketi deneyimini kullanmamanızı öneririz.