TeamCity .NET CLI restore not creating .nupkg

TeamCity Professional 2019.1.2 (build 66342)

ASP.NET Core Angular app

.NET CLI (dotnet) restore
.NET CLI (dotnet) build
.NET CLI (dotnet) publish
OctopusDeploy: Create Release

First three steps run green but final step is red with error :

[11:33:08] [Octopus Deploy] Could not find any packages with ID ‘MyApp’ in the feed ‘Octopus Server (built-in)’

I go to Build Agent machine and look here :

“D:\TeamCity\buildAgent\work\cf606c6fac668b\dist”

and the expected build output files are present ( *.js *.css and dependencies *.dll )

But I do not see any packages for my app ( MyApp.1.0.0.1.nupkg )

So apparently the step .NET CLI (dotnet) publish is not creating nupkg for some reason ?

Or what could misconfigured ?

Hi @jgrandydev,

Thanks for reaching out. Unfortunately that .NET CLI (dotnet) publish was not made by us, so I’m not sure exactly how it works.

We do have a set of steps that create packages and pushes them to your repository called Octopus Deploy: Pack & Octopus Deploy: Push package that come bundled along with that OctopusDeploy: Create Release step you are using.

If the .NET Core steps are not working for you, perhaps you could try our steps instead?

Best regards,
Dalmiro

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.