Add net8 enabled flag for in-proc Csx samples #1197
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request updates the C# Script (Csx) samples to run on the .NET 8 in-process hosting model.
Changes:
Added the FUNCTIONS_INPROC_NET8_ENABLED flag and set it to "1" in the local.settings.json file for the C# Script samples.
Reasoning:
The .NET 8 in-process model for Azure Functions requires this application setting to be explicitly enabled for C# Script projects. Without this flag, the function host would default to an older execution model.
This change ensures that the samples are up-to-date with the latest Azure Functions runtime capabilities and can be executed and tested correctly on the .NET 8 framework. This aligns the sample's configuration with the recommended setup for running C# Script functions on .NET 8.
Code Changes
az_func.GlobalState
table must be compatible with all prior versions of the extensionILogger
instance to log relevant information, especially information useful for debugging or troubleshootingasync
andawait
for all long-running operationsCancellationToken
Dependencies
dotnet restore --force-evaluate
to update the lock files and ensure that there are NO major versions updates in either src/packages.lock.json or Worker.Extensions.Sql/src/packages.lock.json. If there are, contact the dev team for instructions.Documentation