I inserted a dotnet restore step right before the build of the solution. This fixed the error message