I am trying to create a nuget package of my .NET Framework project - '
MyProj.csproj'. For this, I have created nuspec file using nuget.exe commands and have changed the assembly info as well.
Now, on running the below command -
nuget pack MyProj.csproj
I am getting below error -
Attempting to build package from 'MyProj.csproj'. MSBuild auto-detection: using msbuild version '126.96.36.1994' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin'. Packing files from 'C:\Projects\SolutionName\src\Feature\MyProj\code\bin'. Using 'MyProj.nuspec' for metadata. Found packages.config. Using packages listed as dependencies Error NU5012: Unable to find 'EnterpriseLibrary.Common.6.0.1304.0.nupkg'. Make sure the project has been built.
I can see
EnterpriseLibrary.Common.6.0.1304.0.nupkg file inside packages folder on path
C:\Projects\SolutionName\packages\ but I am not sure how to resolve this error.
Please suggest a resolution.