NuGet Error NU5012

Unable to find 'F:\project\bin\Debug\net461\project.dll'. Make sure the project has been built.

Issue

The project being packed has not been built yet and hence cannot be packaged.

Solution

Please build the project before running NuGet pack operation or use the -Build option to build the project before packaging.