Developing in .NET Core. Overview
With Cloud Functions, you can run applications written in C#
This service provides several runtimes with different versions. We do not recommend using runtime versions that are no longer supported.
| Name | .NET Core version | C# version | Operating system |
Preloaded | Supported by Cloud Functions |
|---|---|---|---|---|---|
| dotnetcore31 | 3.1.417 | 8.0 | Ubuntu 18.04 | No | No |
| dotnet6 | 6.0.400 | 8.0 | Ubuntu 18.04 | No | Yes |
| dotnet8 | 8.0.100-rc.2 | 12.0 | Ubuntu 22.04 LTS | No | Yes |
You can add an SDK library
When creating a new function version, the builder will automatically install all declared dependencies required for the function. For more information about requirements and limitations, see Building and managing .NET Core function dependencies.
The runtime automatically loads your code and invokes the request handler you specified. It receives the incoming request and the invocation context as arguments. The context contains additional information about the function parameters.
Cloud Functions automatically catches the application's standard output streams and sends them to the centralized logging system in Yandex Cloud. This system also logs entries about the start and end of each function execution, as well as any errors that occur during execution. For more information about the log format, see .NET Core function execution logging.
To learn more about programming in C# or how certain constructs work, we recommend taking a basic course on Stepik