DEV Community

Discussion on: Azure Static Web Apps are Awesome

Collapse
 
marcpiechura profile image
Marc Piechura

Are you sure that it works with a C# api too? I’ve tried it once but the GitHub action failed to build the C# function, the docs also say JavaScript is required.

Collapse
 
amsmart profile image
Emmanuel Oluwagbemiga Adebiyi (Smart)

C# is absolutely supported, not only that, but it's first-class. You're probably using a wrong Github Action workflow. The '.NET Core' workflow is what you're looking for.

Collapse
 
jmarbutt profile image
Jonathan Marbutt

I would love to see an example of the ‘.NET Core’ version working with the Azure Static Sites. The official docs say it isn’t supported yet from what i can tell.

Collapse
 
david_whitney profile image
David Whitney

The C# stuff works locally, but you need to do some more work in the GHAction to cajole it to work during deployment. I'll put together something more detailed here.

I think it's definitely currently a grey area :)

Collapse
 
marcpiechura profile image
Marc Piechura

Would love to see a example! I tried already to provide a package.json file that builds the function, but that wasn’t enough. Haven’t spend much time digging deeper, though.