Note: This is the migration API reference for FAKE 5. The new (modularized) API documentation can be found
here.
If the API is already migrated you can check here if exists in a module.
More information regarding the migration can be found here

Example implementation (supports runner and vault tasks)

// Either use a local vault filled by the 'FAKE_VAULT_VARIABLES' environment variable// or fall back to the build process if none is givenletvault=matchVault.fromFakeEnvironmentOrNone()with|Somev->v// fake 5 vault task, uses 'FAKE_VAULT_VARIABLES' by default|None->TeamFoundation.variables// fake 5 runner task// Only needed if you want to fallback to 'normal' environment variables (locally for example)letgetVarOrDefaultname=matchvault.TryGetnamewith|Somev->v|None->Environment.environVarOrFailnameTarget.create"Deploy"(fun_->lettoken=getVarOrDefault"github_token"// Use token to deploy to githubletapiKey=getVarOrDefault"nugetkey"// Use apiKey to deploy to nuget())