0

I am Developing an Azure Function solution where I have 2 class library and one Azure Function projects. I have already setup the Azure DevOps build and release pipelines. With my recent changes I am getting an error as /usr/share/dotnet/sdk/2.2.105/NuGet.targets(499,5): error : Could not find a part of the path '/tmp/NuGetScratch whenever the azure build pipeline is running.

enter image description here

I am not sure what made this problem. Any help is really appreciated.

Sibeesh Venu
  • 18,755
  • 12
  • 103
  • 140
  • For someone who may stumble upon this issue on hosted Ubuntu agent 1604 - I had to build the .csproj instead of .sln file. – Vinod Jul 20 '19 at 08:47

1 Answers1

0

I just figured out that the issue is with the project target framework. All my projects in the solution are in .Net Core 2.1 except one project (class library) was in .Net Standard. This was a mistake I had done while creating the class library project, I selected class library (.NET Standard) instead of selecting Class Library (.NET Core).

enter image description here

I removed that project (both from visual studio and file explorer) and create a new project with the same name but this time by selecting Class Library (.NET Core) and then copied my classes to this project.

enter image description here

That fixed my issue. Hope it helps.

Sibeesh Venu
  • 18,755
  • 12
  • 103
  • 140