I created a Static Web App per the instructions on this page. The Javsscript Azure Function worked.
Then I replaced the API with a C# version. Now when I publish the Function to Azure, I get the following error.
The function language 'dotnet' is unsupported or invalid. The following languages are valid: node.
Is this due to Azure Static WebApp wont support dotnet/C#? How can I use C# inside a Static Web App if it can support?
c# functions are supported for azure static-web-apps. The Visual-Studio-Code Azure Static Web Apps extension can create all the necessary files for you automatically, according to the build-workflow file.
On this website you can find a detailed description about how to do it: https://www.whitesourcesoftware.com/free-developer-tools/blog/azure-functions-static-web-apps/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With