title | description | author | ms.author | ms.date | ms.topic | f1_keywords | |
---|---|---|---|---|---|---|---|
NuGet Error NU5049 |
NU5049 error code |
nkolev92 |
nikolev |
11/07/2022 |
reference |
|
The
pack
command for SDK-style projects is not supported, usedotnet pack
ormsbuild -t:pack
to pack this project instead. You can override this behavior by setting the 'NUGET_ENABLE_LEGACY_CSPROJ_PACK' environment variable to 'true'.
NuGet.exe pack should not be used to generate packages for SDK-style projects.
Use dotnet pack
or msbuild -t:pack
instead.
It recommended that you do not use the legacy csproj pack experience as it generates incomplete packages.