Repository navigation
Description
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:
-
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.
-
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?
- Create a .NET 8 application.
- Add the following
global.json:
{
"sdk": {
"version": "8.0.422",
"rollForward": "latestPatch"
}
}- Deploy the application to Azure Static Web Apps using the
Azure/static-web-apps-deployGitHub Action. - Perform the deployment before Oryx has been updated to include the requested SDK version.
- Observe that Oryx installs .NET SDK 8.0.420, after which the build fails because
global.jsonrequires 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
- Similar discussion regarding SDK availability lag: Issue Azure Static Web Apps - CI/CD fails for SDK 7.0.302 #2005
- SDK update appears to already exist in PR [June] Dotnet stack update #2933, but it is not yet available in the Oryx version used by Azure Static Web Apps.
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
Benny-TalentzQ commentedon Aug 3, 2026
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)
Benny-TalentzQ commentedon Aug 14, 2026
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
Benny-TalentzQ commentedon Nov 19, 2026
Following up on the original
8.0.422/8.0.420failure. 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 settingDOTNET_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.jsonand refuses any SDK that is not in its own catalog.Workaround
Build with
actions/setup-dotnet(it honorsglobal.json) and useAzure/static-web-apps-deployonly to upload. Oryx never runs, so its SDK catalog no longer matters.Clientbelow is the Blazor WebAssembly project.Apiis the isolated Functions project.staticwebapp.config.jsonsits next to the client project, outside the publishedwwwroot.Three inputs turn the action from "build and upload" into "upload only":
skip_app_build: trueandskip_api_build: true--> logSkipping step to build ... with Oryx.app_location/api_location--> point at the publish output, not the source projects.config_file_locationis required whenstaticwebapp.config.jsonlives next to the project and is not part of the publish output.Without it the deploy drops
navigationFallback(deep links 404) andplatform.apiRuntime. With it, the client logsCopying 'staticwebapp.config.json' to build output.dotnet publishonly 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
v1tag cannot express this. It still resolves to1a947af(2021), whoseaction.ymldeclaresskip_app_buildbut notskip_api_buildorconfig_file_location. GitHub forwards only declared inputs, so those two are dropped. Thev1branch head,4d27395796ac319302594769cfe812bd207490b1(2024-09-11), declares both.Dockerfileandentrypoint.share unchanged, so the pin only forwards the extra inputs.What the deploy action actually runs
Azure/static-web-apps-deployis a container action. At the pinned commit its definition is:GitHub turns each
with:input intoINPUT_<NAME>and mounts the repo at/github/workspace. Replaying thatdocker runlocally 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 runofmcr.microsoft.com/appsvc/staticappsclient:stableagainst a throwaway Free Static Web App.Throwaway resource group and Free Static Web App. The SWA has to be in a region that offers the service.
The API used for testing reads app settings at startup. Dummy values were set so it could answer a request.
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'sentrypoint.sh, so every run below overrides--entrypoint.Inspected 2026-11-19. The image was built 2026-10-29 and the Oryx inside it is ReleaseTagName
20260728.2(commit203b718c5847f8ff2fa0f9aaeb1987e6b1bd30d7). That is the lag described in Azure/static-web-apps#1788, and it is still present months after the original8.0.422report (that one was Oryx20260109.4installing SDK8.0.420).The deployment token goes in a file only the current user can read (
umask 077) and is passed with--env-file.The browser runtime was read from the deployed site.
_framework/dotnet.jsnames a fingerprinteddotnet.runtime.<hash>.js, and that file contains the runtime version.$Uis the throwaway hostname.global.jsonfor 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.Oryx saw
net10.0and picked the newest .NET 10 it knows (runtime10.0.4, SDK10.0.200) without readingglobal.json.dotnetdid read it.latestPatchonly accepts10.0.404through10.0.4xx, so10.0.200was rejected. Letting Oryx build this repo cannot succeed. Same shape as the original report (Detected dotnet: 8.0.26, SDK8.0.420,global.jsonasked for8.0.422). The message says the SDK is missing. It does not say Oryx installed a catalog version that cannot satisfyglobal.json.Run 2:
DOTNET_VERSION=10.0.15This release's .NET 10 catalog stops at
10.0.4. No setting makes it install SDK10.0.404.Run 3: publish locally, then upload only
Publish with the SDK
global.jsonselects, then point the client at the output and skip both Oryx builds."version": "10.0.0"in the runtimeconfig is the minimum runtime. The API rolls forward to whatever patch the Functions host has installed.dotnetisolated version: 10.0comes fromplatform.apiRuntimeinClient/staticwebapp.config.json./api/settingsstands in for an API route that only responds once the Functions host has started. The site shipped the10.0.15WebAssembly runtime, the API ran ondotnet-isolated:10.0, and/some/deep/linkfell back toindex.htmlthroughnavigationFallback.Run 4:
global.jsonremoved, otherwise the same Oryx buildRemoving
global.jsonis what lets Oryx finish, and the browser gets10.0.8, seven patches behind the10.0.15from run 3. SDK10.0.200'swasm-toolsworkload installs thebrowser-wasmpack10.0.8. Oryx's SDK decides the WebAssembly runtime, so a green Oryx build is not the SDKglobal.jsonasked for and not the current runtime patch. The305 secpublish 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.04runner withactions/setup-dotnet, then deploy with the workflow'swith:block translated toINPUT_*variables.with:action: "upload"INPUT_ACTION=upload(intoken.env)app_location: "publish/web/wwwroot"INPUT_APP_LOCATION=publish/web/wwwrootapi_location: "publish/api"INPUT_API_LOCATION=publish/apiconfig_file_location: "Client"INPUT_CONFIG_FILE_LOCATION=Clientskip_app_build: trueINPUT_SKIP_APP_BUILD=trueskip_api_build: trueINPUT_SKIP_API_BUILD=trueRun 3 published with the host SDK. Run 5 published in the Linux SDK image. Both uploads used the same skip inputs.
Cleanup when finished:
Results
global.json10.0.40410.0.200(Oryx's choice)dotnetrejects10.0.200under the10.0.404pinDOTNET_VERSION=10.0.1510.0.2and10.0.4onlydotnet publishwith SDK10.0.404, thenskip_app_build/skip_api_build10.0.404200global.jsonremoved10.0.200200mcr.microsoft.com/dotnet/sdk:10.0.404, deploy with the inputs above10.0.404200, deep links200