0
votes

I am trying to extract Nuget Package in Azure DevOps as part of build. I don't have dedicated plugin in Azure DevOps to unpack Nuget package. I just use zip extractor.

I see some errors,

stderr: 2019-10-25T14:28:54.9806038Z ERROR: Can't allocate required memory!

I have attached pic as wellenter image description here

2

2 Answers

1
votes

How many nuget packages are in your project? As my test, I upload two nuget packages in my project.

enter image description here

If I set the Archive file patterns as *.nupkg

enter image description here

I will get the same error message as yours.

enter image description here

But if I add two Extract files tasks and set the Archive file patterns as below. enter image description here

The task will run successed. enter image description here enter image description here

Hope this will help.

0
votes

Add the NuGet Restore Task before your build step.