Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Add support for Azure Functions v4 #1285

Merged
merged 6 commits into from
Jan 31, 2022
Merged

Conversation

philliphoff
Copy link
Contributor

@philliphoff philliphoff commented Jan 29, 2022

Updates the way in which we locate an Azure Functions runtime. Previously, this was hardcoded to version 3. With this change, Tye will attempt to extract the AzureFunctionsVersion from the project file (assuming a .NET-based function), then using that to locate the proper runtime. If no project or property was found, then Tye falls back to version 4.

Tye will now also use the host func executable to start the Azure Functions runtime, where previously it has executed the func.dll directly. (For version 4, this method of starting the runtime no longer works.)

Resolves #1241.

Also adds Tye installation/uninstallation scripts to eliminate having to remember/type the (often version-specific) commands.

@philliphoff philliphoff merged commit 6f9454e into main Jan 31, 2022
@philliphoff philliphoff deleted the philliphoff-functions-v4 branch January 31, 2022 18:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

az-function not working with dotnet 6 and azure-functions-core-tools@4
3 participants