AzureFunctionsOpenIDConnectAuthSample
AzureFunctionsOpenIDConnectAuthSample copied to clipboard
Use `FunctionsPreservedDependencies` to resolve "Could not load file or assembly" errors
Use FunctionsPreservedDependencies instead of _FunctionsSkipCleanOutput to resolve "Could not load file or assembly" errors.
For some info about FunctionsPreservedDependencies, see:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-vs#configure-your-build-output-settings
This approach is a possible means to address Issue: #27
I'm not sure I like FunctionsPreservedDependencies better than _FunctionsSkipCleanOutput.
FunctionsPreservedDependenciesis (minimally) documented._FunctionsSkipCleanOutputis not documented, but was recommended beforeFunctionsPreservedDependenciesbecame available in Microsoft.NET.Sdk.Functions 3.0.12.- Hunting down the assembly names to list in
FunctionsPreservedDependencieselements is time consuming, and will have to be updated as the assemblies used by the functions run-time or function app change.- I had to run tests on the
SampleFunctionAppin multiple scenarios in order to discover the assembly names that neededFunctionsPreservedDependencieselements.
- I had to run tests on the
See my summary and guidance notes in my comment in #27
Closing this PR without changes. The issue is not something that is going to be fixed. And in-process functions will be retired with .NET 6 or 8.
See my blog post: _FunctionsSkipCleanOutput and FunctionsPreservedDependencies.
And in-process functions will be retired with .NET 6 or 8.
Not until .NET 9. Still supported with .NET 8.
To clarify , " .NET 8 to be the last LTS release to receive in-process model support in Azure Functions." That's from .NET on Azure Functions – August 2023 roadmap update
End of support for .NET 8 is November 10, 2026, as per .NET and .NET Core Support Policy