Irvin Agustin
Irvin Agustin

Reputation: 28

Why .zip is not being created by azure devops for specific webjob project

I have 3 webjob projects on my application

Webjob A, B, and C

When running visual studio ci/cd I got this error on release for Webjob.A project

[error]Error: No package found with specified pattern:

After some investigation I found out that zip files were created for webjob.B and webjob.C but not for webjob.A during publishing artefact.

Anyone have idea what the problem is?

Upvotes: 0

Views: 455

Answers (1)

Joey Cai
Joey Cai

Reputation: 20067

Summary your comment to here to help others who have same issue.

Add the following line in webjob's .csproj file.

<Import Project="..\packages\Microsoft.Web.WebJobs.Publish.1.0.9\tools\webjobs.targets" Condition="Exists('..\packages\Microsoft.Web.WebJobs.Publish.1.0.9\tools\webjobs.targets')" />

Upvotes: 1

Related Questions