Azure / Azure/static-web-apps-cli

Add support for dotnetisolated v10

オープン 初心者向け
#1,002 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
668
フォーク
156
PR マージ指標
30日以内にマージされた PR はありません

説明

Before filing this issue, please ensure you're using the latest CLI by running `swa --version` and comparing to the latest version on [npm](https://www.npmjs.com/package/@azure/static-web-apps-cli).

2.0.9

**Describe the bug**
A clear and concise description of what the bug is.

My function is build with net10, but went I set the api-version to 10.0 I get the following error

```
13-Jul-2026 18:46:46 | - Preparing deployment. Please wait...
-- | --
13-Jul-2026 18:46:48 | ✖ Cannot deploy to the function app because Function language info isn't provided, use flags "--api-language" and "--api-version" or add a "platform.apiRuntime" property to your staticwebapp.config.json file, or create one in ./src. Please consult the documentation for more information about staticwebapp.config.json: https://learn.microsoft.com/azure/static-web-apps/build-configuration?tabs=github-actions#skip-building-the-api
13-Jul-2026 18:46:48 | ✖ Deployment failed with exit code 1
13-Jul-2026 18:46:48 | ✖ The deployment binary exited with code 1.
13-Jul-2026 18:46:48 | ✖ If you are running in a minimal container image, ensure native dependencies are installed.
13-Jul-2026 18:46:48 | ✖ Run ldd /home/bamboo/.swa/deploy/689a6c1fe8fc32f40348cc41223a7e9d83dd43d2/StaticSitesClient to check for missing shared libraries.
```

**To Reproduce**
Steps to reproduce the behavior:

1. Add NET 10 API as publish output (not source code) 'dotnet publish api.csproj -o ./api'
2. Type in command 'npx @azure/static-web-apps-cli deploy ./src --env production --api-location ./api --api-language "dotnetisolated" --api-version "10.0" ...'

You get the error above

It should not give errors, as .net 10 was released last November.
If I change the version to 9.0, the deployment works fine, so probably api version is irrelevant?

The fix trivial: change the constants file
https://github.com/Azure/static-web-apps-cli/blob/main/src/core/constants.ts#L307

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

サポート対象の API 言語とバージョンの値が定義されている src/core/constants.ts の 307 行付近から始めます。issue に記載された deployment コマンドを再現するか、関連する CLI テストを実行し、その後、報告されている language-info エラーなしで dotnetisolated v10 の publish 出力が受け入れられることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, typescript
領域
cli
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
78/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。