Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 948
nasiroudin Avatar asked Mar 13 '18 05:03

nasiroudin


2 Answers

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

like image 127
Daniil Sokolyuk Avatar answered Oct 30 '22 12:10

Daniil Sokolyuk


I add an additional step on top of my build steps which is a command line custom script

dotnet nuget locals --clear all

Build Step to clear nuget locals

like image 23
zapoo Avatar answered Oct 30 '22 13:10

zapoo