Search code examples
.net-coreteamcitycakebuild

TeamCity - Building dotnet core web api project using cake script


Running Cake Build script on my local machine works fine but when same script is run on TeamCity, the following error appears: Nuspec file does not exist in package.

enter image description here

Any idea what could have caused this error?


Solution

  • I spent two days due to this error On dotnet build --configuration Release in TeamCity PowerShell, always got this error

    error NU5000: Nuspec file does not exist in package
    

    After deleting this folder, everything worked C:/Users/teamcity_user/.nuget