Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make C# Azure Function work with Static Web App?

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?

like image 480
wonderful world Avatar asked Oct 27 '25 04:10

wonderful world


1 Answers

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/

like image 93
Peter Widmer Avatar answered Oct 29 '25 07:10

Peter Widmer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!