Skip to content

Oryx SDK availability lags behind .NET GA releases, causing builds to fail for latest global.json SDK #3017

Open

Description

@Benny-TalentzQ

Bug Report

  • At what date and time did you most recently experience the problem?

2026-07-31 (UTC)

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.

Azure Static Web Apps using the Azure/static-web-apps-deploy GitHub Action on GitHub Actions hosted runners.

  • If your repo is publicly available please share its URL:

Repository is currently private.

  • What happened?

Our repository contains the following global.json:

{
  "sdk": {
    "version": "8.0.422",
    "rollForward": "latestPatch"
  }
}

During deployment, Oryx detected the application and dynamically installed .NET SDK 8.0.420 instead of the SDK requested by global.json (8.0.422).

The subsequent build failed because the .NET SDK resolver correctly requires 8.0.422 (or a later patch in the same feature band) and cannot roll back to 8.0.420.

This appears to be another instance of the long-standing gap between new .NET SDK releases and their availability in Oryx, similar to the discussion in Issue #2005.

I also noticed that there is already a pull request updating the SDK catalog/support (PR #2933). However, the version of Oryx currently used by Azure Static Web Apps still does not include those updates, leaving a period during which repositories targeting the latest GA .NET SDK cannot be built successfully.

It would be helpful to understand the expected cadence between SDK update pull requests being merged and those changes becoming available in the Oryx version used by Azure services such as Azure Static Web Apps.

  • What did you expect or want to happen?

Ideally one of the following:

  1. New GA .NET SDKs should become available in Oryx as quickly as possible after release so that repositories can adopt the latest SDK without deployment failures.

  2. If the requested SDK is not yet available, Oryx should fail early with a clear diagnostic, for example:

    Requested SDK 8.0.422 is not yet available in the current Oryx image. Latest available SDK is 8.0.420.

    This would make it immediately obvious that the failure is due to SDK availability in Oryx rather than an application or repository configuration issue.

The current behavior forces developers to either delay SDK updates, pin to an older SDK, or wait until the updated Oryx image is deployed.

  • How can we reproduce it?
  1. Create a .NET 8 application.
  2. Add the following global.json:
{
  "sdk": {
    "version": "8.0.422",
    "rollForward": "latestPatch"
  }
}
  1. Deploy the application to Azure Static Web Apps using the Azure/static-web-apps-deploy GitHub Action.
  2. Perform the deployment before Oryx has been updated to include the requested SDK version.
  3. Observe that Oryx installs .NET SDK 8.0.420, after which the build fails because global.json requires 8.0.422.
  • Do you have log output? Please include between the backticks:
Oryx Version: 0.2.20260109.4+7d54dd5970dbbf3ae6bdcf4dee57b07816a392ce

Detected following platforms:
  dotnet: 8.0.26

Version '8.0.26' of platform 'dotnet' is not installed. Generating script to install it...

Downloading and extracting 'dotnet' version '8.0.420'...

Requested SDK version: 8.0.422
global.json file: /github/workspace/global.json

Installed SDKs:

Install the [8.0.422] .NET SDK or update [/github/workspace/global.json] to match an installed SDK.

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found

Oryx has failed to build the solution.

Additional context

Thank you for taking a look. I understand there may be operational reasons for the delay, but greater visibility into the release cadence—or more informative diagnostics when the requested SDK is unavailable—would significantly improve the developer experience.

Activity

  1. Benny-TalentzQ commented on Aug 3, 2026

    @Benny-TalentzQ
    Author

    Paul Dorsch (@pauld-msft) Based on your comment at #2005 (comment), it seems automation has been rolled out to improve the cadence at which Oryx adopts new .NET binaries.

    However, as you can see in the above issue, even though the SDK update appears to already exist in PR [June] Dotnet stack update #2933, it is not yet available in the Oryx version used by Azure Static Web Apps.

    I am wondering if I have missed something here. Thanks in advance for your help!

    CC: prathambande Vijay Saayi (@vijaysaayi) Akshay Kumar (@kumaraksh1)

  2. Benny-TalentzQ commented on Aug 14, 2026

    @Benny-TalentzQ
    Author

    On digging deeper it seems that the issue is that the latest version of the GitHub action Azure/static-web-apps-deploy (
    Azure/static-web-apps-deploy@1a947af # v1) is pulling in the docker image mcr.microsoft.com/appsvc/staticappsclient:stable which in-turn is using an older Orxy Release -- ReleaseTagName: 20260109.4 (Oryx Version: 0.2.20260109.4+7d54dd5970dbbf3ae6bdcf4dee57b07816a392ce, Commit: 7d54dd5)

    Though I can see that both the below PRs have been merged to Oryx main branch, i am unable to find a corresponding release in the Oryx Page

    It would be of immense help if some one could advise how the Oryx Release cycle works

  3. Benny-TalentzQ commented on Nov 19, 2026

    @Benny-TalentzQ
    Author

    Following up on the original 8.0.422 / 8.0.420 failure. The same break still happens on the current Static Web Apps deploy image, now with .NET 10, and it is not fixed by waiting for a newer Oryx catalog entry or by setting DOTNET_VERSION.

    Cross-posted on Azure/static-web-apps#1788 and #3017, because the failure is the combination of the two: the image ships an old Oryx, and that Oryx both ignores global.json and refuses any SDK that is not in its own catalog.

    Workaround

    Build with actions/setup-dotnet (it honors global.json) and use Azure/static-web-apps-deploy only to upload. Oryx never runs, so its SDK catalog no longer matters.

    Client below is the Blazor WebAssembly project. Api is the isolated Functions project. staticwebapp.config.json sits next to the client project, outside the published wwwroot.

    - name: Setup .NET
      uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68  # v6.0.0
    
    - name: Publish client and API
      run: |
        dotnet publish Client/Client.csproj --configuration Release --output publish/web
        dotnet publish Api/Api.csproj --configuration Release --output publish/api
    
    - name: Deploy
      uses: Azure/static-web-apps-deploy@4d27395796ac319302594769cfe812bd207490b1  # head of v1 branch, not the v1 tag
      with:
        azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
        repo_token: ${{ secrets.GITHUB_TOKEN }}
        action: "upload"
        app_location: "publish/web/wwwroot"
        api_location: "publish/api"
        config_file_location: "Client"
        skip_app_build: true
        skip_api_build: true

    Three inputs turn the action from "build and upload" into "upload only":

    • skip_app_build: true and skip_api_build: true --> log Skipping step to build ... with Oryx.
    • app_location / api_location --> point at the publish output, not the source projects.
    • config_file_location is required when staticwebapp.config.json lives next to the project and is not part of the publish output.
      Without it the deploy drops navigationFallback (deep links 404) and platform.apiRuntime. With it, the client logs Copying 'staticwebapp.config.json' to build output.

    dotnet publish only needs an SDK. The output is portable:

    • publish/web/wwwroot/ is the Blazor WebAssembly site. Those bytes run in the browser, so the OS that built them does not matter.
    • publish/api/ is a framework-dependent isolated Functions app (Api.dll, functions.metadata, host.json, worker.config.json).

    The v1 tag cannot express this. It still resolves to 1a947af (2021), whose action.yml declares skip_app_build but not skip_api_build or config_file_location. GitHub forwards only declared inputs, so those two are dropped. The v1 branch head, 4d27395796ac319302594769cfe812bd207490b1 (2024-09-11), declares both. Dockerfile and entrypoint.sh are unchanged, so the pin only forwards the extra inputs.


    What the deploy action actually runs

    Azure/static-web-apps-deploy is a container action. At the pinned commit its definition is:

    FROM mcr.microsoft.com/appsvc/staticappsclient:stable
    COPY entrypoint.sh /entrypoint.sh
    ENTRYPOINT ["sh", "/entrypoint.sh"]
    cd /bin/staticsites/
    ./StaticSitesClient $INPUT_ACTION

    GitHub turns each with: input into INPUT_<NAME> and mounts the repo at /github/workspace. Replaying that docker run locally is the same Oryx, the same SDK choice, and the same upload. The only secret required is the SWA deployment token.

    Experiments

    Each run below is one docker run of mcr.microsoft.com/appsvc/staticappsclient:stable against a throwaway Free Static Web App.

    S=<subscription id>
    W=<scratch folder>

    Throwaway resource group and Free Static Web App. The SWA has to be in a region that offers the service.

    az group create --subscription $S -n swa-oryx-test-rg -l <region> \
      --tags purpose=oryx-sdk-test temporary=true \
      -o tsv --query "{n:name,l:location,s:properties.provisioningState}"
    az staticwebapp create --subscription $S -g swa-oryx-test-rg -n swa-oryx-test -l <swa-region> --sku Free \
      --tags purpose=oryx-sdk-test temporary=true \
      -o tsv --query "{n:name,host:defaultHostname,sku:sku.name}"

    The API used for testing reads app settings at startup. Dummy values were set so it could answer a request.

    az staticwebapp appsettings set --subscription $S -g swa-oryx-test-rg -n swa-oryx-test \
      --setting-names "ExampleSetting=dummy" -o none

    Working copy:

    rsync -a --exclude bin --exclude obj --exclude .git --exclude .vs /path/to/repo/ $W/src/

    Image inspect. The image's own entrypoint is benv, not the action's entrypoint.sh, so every run below overrides --entrypoint.

    docker pull --platform linux/amd64 -q mcr.microsoft.com/appsvc/staticappsclient:stable
    docker image inspect mcr.microsoft.com/appsvc/staticappsclient:stable --format '{{.Created}} {{.Architecture}}'
    docker image inspect mcr.microsoft.com/appsvc/staticappsclient:stable --format 'EP={{json .Config.Entrypoint}} CMD={{json .Config.Cmd}} WD={{.Config.WorkingDir}}'
    docker run --rm --platform linux/amd64 --entrypoint /bin/sh mcr.microsoft.com/appsvc/staticappsclient:stable \
      -c 'ls /bin/staticsites | head; oryx --version 2>&1 | head -2'
    mcr.microsoft.com/appsvc/staticappsclient:stable
    2026-10-29T00:26:30.884012275Z amd64
    EP=["benv"] CMD=["/bin/bash"] WD=
    0.2.20260728.2+203b718c5847f8ff2fa0f9aaeb1987e6b1bd30d7
    

    Inspected 2026-11-19. The image was built 2026-10-29 and the Oryx inside it is ReleaseTagName 20260728.2 (commit 203b718c5847f8ff2fa0f9aaeb1987e6b1bd30d7). That is the lag described in Azure/static-web-apps#1788, and it is still present months after the original 8.0.422 report (that one was Oryx 20260109.4 installing SDK 8.0.420).

    The deployment token goes in a file only the current user can read (umask 077) and is passed with --env-file.

    umask 077
    T=$(az staticwebapp secrets list --subscription $S -g swa-oryx-test-rg -n swa-oryx-test \
          --query properties.apiKey -o tsv)
    printf 'INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN=%s\nINPUT_ACTION=upload\nGITHUB_WORKSPACE=/github/workspace\nGITHUB_EVENT_NAME=push\nGITHUB_REPOSITORY=local/swa-test\nGITHUB_SHA=0000000\nGITHUB_REF=refs/heads/main\nCI=true\nGITHUB_ACTIONS=true\n' "$T" > $W/token.env
    unset T

    The browser runtime was read from the deployed site. _framework/dotnet.js names a fingerprinted dotnet.runtime.<hash>.js, and that file contains the runtime version. $U is the throwaway hostname.

    U=https://<swa-hostname>
    f=$(curl -s $U/_framework/dotnet.js | grep -oE 'dotnet\.runtime\.[a-z0-9]+\.js' | head -1)
    echo "runtime file: $f"; curl -s $U/_framework/$f | grep -oE '10\.0\.[0-9]+' | sort -u

    global.json for these runs:

    {
      "sdk": {
        "version": "10.0.404",
        "rollForward": "latestPatch"
      }
    }

    Run 1: Oryx build, the inputs CI used to pass

    app_location: Client, api_location: Api, output_location: wwwroot.

    docker run --rm --platform linux/amd64 --env-file $W/token.env \
      -e INPUT_APP_LOCATION=Client -e INPUT_API_LOCATION=Api -e INPUT_OUTPUT_LOCATION=wwwroot \
      -v $W/src:/github/workspace \
      --entrypoint sh mcr.microsoft.com/appsvc/staticappsclient:stable -c 'cd /bin/staticsites && ./StaticSitesClient upload' \
      > $W/run1.log 2>&1; echo exit=$?
    exit=1
    Detected following platforms:
      dotnet: 10.0.4
    Falling back to CDN for 'dotnet' version '10.0.200'.
    Version '10.0.4' of platform 'dotnet' is not installed. Generating script to install it...
    Detected the following frameworks: blazor
    Downloading and extracting 'dotnet' version '10.0.200' to '/tmp/oryx/platforms/dotnet/10.0.200'...
    Requested SDK version: 10.0.404
    global.json file: /github/workspace/global.json
    Installed SDKs:
    
    Install the [10.0.404] .NET SDK or update [/github/workspace/global.json] to match an installed SDK.
    Oryx has failed to build the solution.
    Exiting
    

    Oryx saw net10.0 and picked the newest .NET 10 it knows (runtime 10.0.4, SDK 10.0.200) without reading global.json. dotnet did read it. latestPatch only accepts 10.0.404 through 10.0.4xx, so 10.0.200 was rejected. Letting Oryx build this repo cannot succeed. Same shape as the original report (Detected dotnet: 8.0.26, SDK 8.0.420, global.json asked for 8.0.422). The message says the SDK is missing. It does not say Oryx installed a catalog version that cannot satisfy global.json.

    Run 2: DOTNET_VERSION=10.0.15

    docker run --rm --platform linux/amd64 --env-file $W/token.env \
      -e INPUT_APP_LOCATION=Client -e INPUT_API_LOCATION=Api -e INPUT_OUTPUT_LOCATION=wwwroot \
      -e DOTNET_VERSION=10.0.15 \
      -v $W/src:/github/workspace \
      --entrypoint sh mcr.microsoft.com/appsvc/staticappsclient:stable -c 'cd /bin/staticsites && ./StaticSitesClient upload' \
      > $W/run2.log 2>&1; echo exit=$?
    exit=1
    Error: Platform 'dotnet' version '10.0.15' is unsupported. Supported versions: 10.0.2, 10.0.4, 3.1.10, ... 8.0.30, 8.0.31,
    9.0.0-preview.6.24327.7, 9.0.0-rc.2.24473.5, 9.0.0, 9.0.1, 9.0.3, 9.0.4, 9.0.7, 9.0.10, 9.0.11, 9.0.12, 9.0.14, 1.0.16
    Oryx has found build steps, but identified unsupported platform versions. Failing build.
    Exiting
    

    This release's .NET 10 catalog stops at 10.0.4. No setting makes it install SDK 10.0.404.

    Run 3: publish locally, then upload only

    Publish with the SDK global.json selects, then point the client at the output and skip both Oryx builds.

    cd $W/src && dotnet --version
    dotnet publish Client/Client.csproj -c Release -o publish/web
    dotnet publish Api/Api.csproj -c Release -o publish/api
    ls publish/web/wwwroot | head -3
    ls publish/api | grep -E 'host.json|functions.metadata|Api.dll|worker.config'
    grep -o '"version": "[^"]*"' publish/api/Api.runtimeconfig.json
    10.0.404
    Client.styles.css
    Client.styles.css.br
    Client.styles.css.gz
    Api.dll
    functions.metadata
    host.json
    worker.config.json
    "version": "10.0.0"
    

    "version": "10.0.0" in the runtimeconfig is the minimum runtime. The API rolls forward to whatever patch the Functions host has installed.

    docker run --rm --platform linux/amd64 -e DOTNET_EnableWriteXorExecute=0 --env-file $W/token.env \
      -e INPUT_APP_LOCATION=publish/web/wwwroot -e INPUT_API_LOCATION=publish/api -e INPUT_OUTPUT_LOCATION= \
      -e INPUT_SKIP_APP_BUILD=true -e INPUT_SKIP_API_BUILD=true -e INPUT_CONFIG_FILE_LOCATION=Client \
      -v $W/src:/github/workspace \
      --entrypoint sh mcr.microsoft.com/appsvc/staticappsclient:stable -c 'cd /bin/staticsites && ./StaticSitesClient upload' \
      > $W/run3.log 2>&1; echo exit=$?
    exit=0
    config_file_location: config file 'Client/staticwebapp.config.json' was found.
    Skipping step to build /github/workspace/publish/web/wwwroot with Oryx
    Using 'staticwebapp.config.json' file for configuration information, 'routes.json' will be ignored.
    Api Directory Location: 'publish/api' was found.
    Skipping step to build /github/workspace/publish/api with Oryx
    Function Runtime Information. OS: windows, Functions Runtime: ~4, dotnetisolated version: 10.0
    Found functions.metadata file
    Zipping Api Artifacts
    Status: Succeeded. Time: 78.1100584(s)
    Deployment Complete :)
    

    dotnetisolated version: 10.0 comes from platform.apiRuntime in Client/staticwebapp.config.json.

    U=https://<swa-hostname>
    for p in / /_framework/blazor.webassembly.js /_framework/dotnet.js /api/settings /some/deep/link; do
      curl -s -o /dev/null -w "$p -> %{http_code} %{content_type}\n" $U$p; done
    f=$(curl -s $U/_framework/dotnet.js | grep -oE 'dotnet\.runtime\.[a-z0-9]+\.js' | head -1); echo "runtime file: $f"
    curl -s $U/_framework/$f | grep -oE '10\.0\.[0-9]+(-[a-z0-9.]+)?(\+[0-9a-f]+)?' | sort | uniq -c
    / -> 200 text/html
    /_framework/blazor.webassembly.js -> 200 text/javascript
    /_framework/dotnet.js -> 200 text/javascript
    /api/settings -> 200 application/json; charset=utf-8
    /some/deep/link -> 200 text/html
    runtime file: dotnet.runtime.v2rwe8u38b.js
       1 10.0.15
    

    /api/settings stands in for an API route that only responds once the Functions host has started. The site shipped the 10.0.15 WebAssembly runtime, the API ran on dotnet-isolated:10.0, and /some/deep/link fell back to index.html through navigationFallback.

    Run 4: global.json removed, otherwise the same Oryx build

    rsync -a --exclude publish --exclude global.json $W/src/ $W/oryx/
    docker run --rm --platform linux/amd64 -e DOTNET_EnableWriteXorExecute=0 --env-file $W/token.env \
      -e INPUT_APP_LOCATION=Client -e INPUT_API_LOCATION=Api -e INPUT_OUTPUT_LOCATION=wwwroot \
      -v $W/oryx:/github/workspace \
      --entrypoint sh mcr.microsoft.com/appsvc/staticappsclient:stable -c 'cd /bin/staticsites && ./StaticSitesClient upload' \
      > $W/run4.log 2>&1; echo exit=$?
    exit=0
    Detected following platforms:
      dotnet: 10.0.4
    Falling back to CDN for 'dotnet' version '10.0.200'.
    Using .NET Core SDK Version: 10.0.200
    Running 'dotnet workload install wasm-tools'...
    Installing pack Microsoft.NETCore.App.Runtime.Mono.browser-wasm version 10.0.8...
    Successfully installed workload(s) wasm-tools.
    dotnet publish done in 305 sec(s).
    Finished building app with Oryx
    Function Runtime Information. OS: windows, Functions Runtime: ~4, dotnetisolated version: 10.0
    Finished building function app with Oryx
    Status: Succeeded. Time: 61.8004967(s)
    Deployment Complete :)
    
    runtime file: dotnet.runtime.r2kbxkuujc.js
    10.0.8
    api -> 200
    

    Removing global.json is what lets Oryx finish, and the browser gets 10.0.8, seven patches behind the 10.0.15 from run 3. SDK 10.0.200's wasm-tools workload installs the browser-wasm pack 10.0.8. Oryx's SDK decides the WebAssembly runtime, so a green Oryx build is not the SDK global.json asked for and not the current runtime patch. The 305 sec publish is that workload install plus the native WebAssembly compile, under emulation.

    Run 5: the workaround, replayed the way a github workflow runs it

    Publish inside the official SDK image, the same shape as an ubuntu-24.04 runner with actions/setup-dotnet, then deploy with the workflow's with: block translated to INPUT_* variables.

    Workflow with: Env var
    action: "upload" INPUT_ACTION=upload (in token.env)
    app_location: "publish/web/wwwroot" INPUT_APP_LOCATION=publish/web/wwwroot
    api_location: "publish/api" INPUT_API_LOCATION=publish/api
    config_file_location: "Client" INPUT_CONFIG_FILE_LOCATION=Client
    skip_app_build: true INPUT_SKIP_APP_BUILD=true
    skip_api_build: true INPUT_SKIP_API_BUILD=true
    rsync -a --exclude bin --exclude obj --exclude .git /path/to/repo/ $W/replay/
    docker run --rm -v $W/replay:/github/workspace -w /github/workspace mcr.microsoft.com/dotnet/sdk:10.0.404 bash -c '
      set -e; dotnet --version
      dotnet test 2>&1 | grep -E "Passed!|Failed!|error"
      dotnet publish Client/Client.csproj --configuration Release --output publish/web 2>&1 | grep -E "error|-> /github/workspace/publish"
      dotnet publish Api/Api.csproj --configuration Release --output publish/api 2>&1 | grep -E "error|-> /github/workspace/publish"'
    echo exit=$?
    10.0.404
    Passed!  - Failed:     0, Passed:     1, Skipped:     0, Total:     1, Duration: 53 ms - UnitTest.dll (net10.0)
      Client -> /github/workspace/publish/web/
      Api -> /github/workspace/publish/api/
    exit=0
    
    docker run --rm --platform linux/amd64 -e DOTNET_EnableWriteXorExecute=0 --env-file $W/token.env \
      -e INPUT_APP_LOCATION=publish/web/wwwroot -e INPUT_API_LOCATION=publish/api -e INPUT_CONFIG_FILE_LOCATION=Client \
      -e INPUT_SKIP_APP_BUILD=true -e INPUT_SKIP_API_BUILD=true \
      -v $W/replay:/github/workspace \
      --entrypoint sh mcr.microsoft.com/appsvc/staticappsclient:stable -c 'cd /bin/staticsites && ./StaticSitesClient upload' \
      > $W/run5.log 2>&1; echo exit=$?
    exit=0
    config_file_location: config file 'Client/staticwebapp.config.json' was found.
    Skipping step to build /github/workspace/publish/web/wwwroot with Oryx
    Copying 'staticwebapp.config.json' to build output
    Skipping step to build /github/workspace/publish/api with Oryx
    Function Runtime Information. OS: windows, Functions Runtime: ~4, dotnetisolated version: 10.0
    Status: Succeeded. Time: 63.8609452(s)
    Deployment Complete :)
    Exiting
    
    / -> 200
    /_framework/blazor.webassembly.js -> 200
    /api/settings -> 200
    /some/deep/link -> 200
    runtime: 10.0.15
    

    Run 3 published with the host SDK. Run 5 published in the Linux SDK image. Both uploads used the same skip inputs.

    Cleanup when finished:

    az group delete --subscription $S -n swa-oryx-test-rg --yes --no-wait
    rm -f $W/token.env

    Results

    Build SDK Deploy Browser runtime
    Oryx, global.json 10.0.404 10.0.200 (Oryx's choice) Fails. dotnet rejects 10.0.200 under the 10.0.404 pin n/a
    Oryx, DOTNET_VERSION=10.0.15 n/a Fails. Catalog offers 10.0.2 and 10.0.4 only n/a
    dotnet publish with SDK 10.0.404, then skip_app_build / skip_api_build 10.0.404 Succeeds. API 200 10.0.15
    Oryx, global.json removed 10.0.200 Succeeds. API 200 10.0.8
    Workflow replay: publish in mcr.microsoft.com/dotnet/sdk:10.0.404, deploy with the inputs above 10.0.404 Succeeds. Oryx skipped, API 200, deep links 200 10.0.15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions