Building and managing .NET Core function dependencies
Cloud Functions supports two ways to manage .NET Core function dependencies: automatic installation via nuget
and manual delivery together with the source code.
NuGet
NuGet.net
.
To deliver dependencies using nuget
, add a link to the required package to the *.csproj
project file. No other actions are required. You can do this using .NET Core CLI
Manual delivery of dependencies
To configure dependencies manually, place the compiled project with all the dependencies in the project archive root.
You can do this using the .NET Core CLIpublish
command.
In which case you do not need to add the source code and project files to the archive.
The process of installing dependencies has resource and execution time limits. For more information, see Quotas and limits in Cloud Functions. You can view the dependency installation log using the link that appears in the list of operations.