nasiroudin
nasiroudin

Reputation: 337

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?

Upvotes: 7

Views: 1570

Answers (2)

zapoo
zapoo

Reputation: 1589

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

Upvotes: 3

Daniil Sokolyuk
Daniil Sokolyuk

Reputation: 504

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

Upvotes: 14

Related Questions