Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨
https://aka.ms/swa/cli-local-development
MIT License
583 stars 110 forks source link

Azure Function .net 8.0 deploy error #788

Closed eolamisan closed 3 months ago

eolamisan commented 6 months ago

Are you accessing the CLI from the default port :4280 ?

Make sure you are accessing the URL printed in the console when running swa start!

ℹ️ NOTE: Make sure to enable debug logs when running any swa commands using --verbose=silly

Describe the bug SWA cli does not allow to deploy an .net 8.0 Azure function.

To Reproduce Steps to reproduce the behavior:

Provide "dotnet-isolated:8.0" as "apiRuntime" in file staticwebapp.config.json.

  1. 
    "platform": {
      "apiRuntime": "dotnet-isolated:8.0"
    }

2. Type in command 'swa deploy --deployment-token xxx'
3. See error

**Expected behavior**
The API / Azure Function is deployed.

**Screenshots**

![image](https://github.com/Azure/static-web-apps-cli/assets/4191912/2809cc0e-ca71-410c-bad8-d302355ef763)

![image](https://github.com/Azure/static-web-apps-cli/assets/4191912/006c6ec4-3ead-4e46-a9dc-3206770d9216)

**Desktop (please complete the following information):**

- OS: Windows 11
- Version 23H2

**Additional context**
Add any other context about the problem here.
jeroen-van-dijk commented 6 months ago

I am facing the same issue while running swa start after upgrading to apiRuntime to dotnet-isolated:8.0

cjk7989 commented 3 months ago

Hi @eolamisan and @jeroen-van-dijk, swa-cli@1.1.7 has been released which will support dotnet-isolated:8.0, thanks for reporting.