Skip to content

chore: merge main into canaries/dev for .NET 10 migration - #1764

Merged
rajamatt merged 5 commits into
canaries/devfrom
dev/mara/canary-chefs-net10
Sep 11, 2026
Merged

rajamatt merged 5 commits into
canaries/devfrom
dev/mara/canary-chefs-net10

Conversation

@rajamatt

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #

PR Type

What kind of change does this PR introduce?

  • Build or CI related changes

What is the current behavior?

The Chefs canary has been red since 2026-08-09 (last green: #226588), with three failing jobs:

Job Error
Android_UITest_Build NETSDK1139: The target platform identifier android was not recognized.
iOS_UITest_Build NETSDK1139 (same)
WASM MSB3073 — emcc ... exited with code 1

main moved the project to .NET 10 in #1758, but the pipeline files on canaries/dev still install .NET SDK 9.0.200. Each nightly run merges main in, which brings the net10.0-* target frameworks onto an agent holding a .NET 9 SDK:

/Users/runner/hostedtoolcache/dotnet/sdk/9.0.200/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(117,5):
error NETSDK1139: The target platform identifier android was not recognized.
  [/Users/runner/work/1/s/Chefs/Chefs.csproj::TargetFramework=net10.0-android]

The nightly merge cannot fix this on its own. Azure reads the pipeline YAML from canaries/dev at queue time and runs UseDotNet@2 before the canary-updater step performs its merge, so the SDK is already installed by the time main's updated templates land on disk. The YAML has to be updated on the branch itself — which is what this PR does.

The WASM job failed separately in the .NET 9 WebAssembly toolchain (Microsoft.NET.Runtime.WebAssembly.Sdk/9.0.2) during the emcc link step.

What is the new behavior?

main is merged into canaries/dev, bringing the .NET 10 migration to the canary branch's own pipeline definitions:

  • DotNetVersion 9.0.200 → 10.0.302 in templates/dotnet-install-{mac,linux,windows}.yml and templates/canary-updater.yml
  • build scripts and job definitions move to net10.0-android / net10.0-ios / net10.0-browserwasm
  • uno-check --tfm parameters updated to the net10 TFMs
  • Chefs.csproj target frameworks and global.json (Uno.Sdk 6.4.53 → 6.6.42) come from main

Also corrected in passing (from main): build/scripts/ios-uitest-run.sh passed TargetFrameworkOverride=net9.0-android in the iOS script; it is now net10.0-ios.

The merge is clean — no conflicts and no file deletions — and all canary-only changes are preserved:

Canary-only change Status after merge
nuget.config dev feed unchanged
canary-updater.yml dev-feed handling preserved (only DotNetVersion updated)
Chefs/Platforms/WebAssembly/aot.profile unchanged
Chefs.UITests/Given_WelcomePage.cs unchanged
ios-uitest-run.sh return 1 → exit 1 preserved

PR Checklist

  • Tested code with current supported SDKs
  • Docs have been added/updated — n/a
  • Unit Tests and/or UI Tests for the changes have been added — n/a
  • Wasm UI Tests are not showing unexpected differences — not run; see below
  • Contains NO breaking changes
  • Updated the Release Notes — n/a
  • Associated with an issue (GitHub or internal)

Other information

Local verification against the merged tree:

  • dotnet build Chefs/Chefs.csproj -c Release -p:TargetFrameworkOverride=net10.0-desktop → 0 errors
  • dotnet publish Chefs/Chefs.csproj -c Release -p:TargetFramework=net10.0-browserwasm -p:TargetFrameworkOverride=net10.0-browserwasm → succeeded; emcc both compiled native assets and linked successfully (emsdk 10.0.7), producing publish/wwwroot. This is the step that fails in the WASM job today.

Not verified locally: the two NETSDK1139 jobs require macOS agents and were not reproduced. Their cause is unambiguous (a .NET 9 SDK cannot parse net10.0-android) and this PR sets DotNetVersion: '10.0.302', but the jobs themselves are only exercised by CI. The WASM publish was run on Windows, whereas CI runs Linux — the variable that changed is the toolchain version rather than the OS, but a Linux-specific emcc issue cannot be ruled out from here.

jonpryor and others added 5 commits July 14, 2026 14:25
Context: e838af9

Commit e838af9 broke Chefs startup on iOS.  Tapping the icon would
result in the splash screen being shown, then replaced with a blank
screen (white or black).

If you open **Console.app**, attach to the iOS device, stream messages,
and filter by `Process:Chefs`, you will see the following exception:

	fail: Uno.UI.Dispatching.NativeDispatcher[0]
	      NativeDispatcher unhandled exception
	      System.InvalidOperationException: NoConstructorMatch, Chefs.Presentation.ShellViewModel
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
	fail: Uno.UI.Dispatching.NativeDispatcher[0]
	      NativeDispatcher unhandled exception
	      System.InvalidOperationException: NoConstructorMatch, Chefs.Presentation.ShellViewModel
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
	         at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.GetCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
	         at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
	         at System.Collections.Concurrent.ConcurrentDictionary`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceIdentifier, Microsoft.Extensions.DependencyInjection, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.DependencyInjection.ServiceProvider.ServiceAccessor, Microsoft.Extensions.DependencyInjection, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].GetOrAdd(ServiceIdentifier , Func`2 )
	         at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.<>c__DisplayClass8_0.<<CreateViewModel>b__0>d.MoveNext()
	      --- End of stack trace from previous location ---
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.CreateViewModel(IServiceProvider services, NavigationRequest request, Route route, RouteInfo mapping)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator`1.<InitializeCurrentView>d__9[[Microsoft.UI.Xaml.Controls.ContentControl, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext()
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator`1.<ExecuteRequestAsync>d__8[[Microsoft.UI.Xaml.Controls.ContentControl, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext()
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.ControlNavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.<>c__DisplayClass4_0.<<ControlCoreNavigateAsync>b__0>d.MoveNext()
	      --- End of stack trace from previous location ---
	         at Uno.Extensions.DispatcherExtensions.<>c__DisplayClass2_0`1.<<ExecuteAsync>b__0>d[[Uno.Extensions.Navigation.NavigationResponse, Uno.Extensions.Navigation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext()
	      --- End of stack trace from previous location ---
	         at Uno.Extensions.Dispatcher.<ExecuteAsync>d__4`1[[Uno.Extensions.Navigation.NavigationResponse, Uno.Extensions.Navigation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext()
	         at System.Collections.Concurrent.ConcurrentDictionary`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceIdentifier, Microsoft.Extensions.DependencyInjection, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.Extensions.DependencyInjection.ServiceProvider.ServiceAccessor, Microsoft.Extensions.DependencyInjection, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].GetOrAdd(ServiceIdentifier , Func`2 )
	         at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
	         at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.<>c__DisplayClass8_0.<<CreateViewModel>b__0>d.MoveNext()
	      --- End of stack trace from previous location ---
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.CreateViewModel(IServiceProvider services, NavigationRequest request, Route route, RouteInfo mapping)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator`1.<InitializeCurrentView>d__9[[Microsoft.UI.Xaml.Controls.ContentControl, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext()
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator`1.<ExecuteRequestAsync>d__8[[Microsoft.UI.Xaml.Controls.ContentControl, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext()
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.ControlNavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.<>c__DisplayClass4_0.<<ControlCoreNavigateAsync>b__0>d.MoveNext()
	      --- End of stack trace from previous location ---
	         at Uno.Extensions.DispatcherExtensions.<>c__DisplayClass2_0`1.<<ExecuteAsync>b__0>d[[Uno.Extensions.Navigation.NavigationResponse, Uno.Extensions.Navigation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext()
	      --- End of stack trace from previous location ---
	         at Uno.Extensions.Dispatcher.<ExecuteAsync>d__4`1[[Uno.Extensions.Navigation.NavigationResponse, Uno.Extensions.Navigation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext()
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.ControlCoreNavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.CoreNavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.Navigator.RegionNavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.Navigator.NavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.FrameworkElementExtensions.<>c__DisplayClass1_1.<<HostAsync>b__6>d.MoveNext()
	      --- End of stack trace from previous location ---
	         at Uno.Extensions.Navigation.FrameworkElementExtensions.Startup(IServiceProvider services, Func`1 afterStartup)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.ControlCoreNavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.Navigators.ControlNavigator.CoreNavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.Navigator.RegionNavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.Navigator.NavigateAsync(NavigationRequest request)
	         at Uno.Extensions.Navigation.FrameworkElementExtensions.<>c__DisplayClass1_1.<<HostAsync>b__6>d.MoveNext()
	      --- End of stack trace from previous location ---
	         at Uno.Extensions.Navigation.FrameworkElementExtensions.Startup(IServiceProvider services, Func`1 afterStartup)
	         at Uno.Extensions.ServiceProviderExtensions.BuildAndInitializeHostAsync(Window window, FrameworkElement viewHost, Func`1 buildHost, String initialRoute, Type initialView, Type initialViewModel, Func`3 initialNavigate)
	         at Uno.Extensions.ApplicationBuilderExtensions.<NavigateAsync>d__0`1[[Chefs.Views.ShellControl, Chefs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
	         at Chefs.App.OnLaunched(LaunchActivatedEventArgs )
	         at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__124_0(Object state)
	         at Uno.UI.Dispatching.NativeDispatcherSynchronizationContext.<>c__DisplayClass3_0.<Post>b__0()
	         at Uno.UI.Dispatching.NativeDispatcher.RunAction(NativeDispatcher , Action )
	         at Uno.Extensions.ServiceProviderExtensions.BuildAndInitializeHostAsync(Window window, FrameworkElement viewHost, Func`1 buildHost, String initialRoute, Type initialView, Type initialViewModel, Func`3 initialNavigate)
	         at Uno.Extensions.ApplicationBuilderExtensions.<NavigateAsync>d__0`1[[Chefs.Views.ShellControl, Chefs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
	         at Chefs.App.OnLaunched(LaunchActivatedEventArgs )
	         at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__124_0(Object state)
	         at Uno.UI.Dispatching.NativeDispatcherSynchronizationContext.<>c__DisplayClass3_0.<Post>b__0()
	         at Uno.UI.Dispatching.NativeDispatcher.RunAction(NativeDispatcher , Action )

The `ShellViewModel` constructor is missing!

For further verification, try:

	ildasm Chefs/obj/Release/net9.0-ios/ios-arm64/ipa/Payload/Chefs.app/Chefs.dll

which showed:

	.class public auto ansi sealed beforefieldinit Chefs.Presentation.ShellViewModel
	       extends [Uno.Extensions.Reactive]Uno.Extensions.Reactive.Bindings.BindableViewModelBase
	{
	  .custom instance void [Uno.Extensions.Reactive]Uno.Extensions.Reactive.Bindings.BindableAttribute::.ctor(class [System.Private.CoreLib]System.Type) = ( 01 00 1D 43 68 65 66 73 2E 50 72 65 73 65 6E 74   // ...Chefs.Present
	                                                                                                                                                          61 74 69 6F 6E 2E 53 68 65 6C 6C 4D 6F 64 65 6C   // ation.ShellModel
	                                                                                                                                                          00 00 )
	  .method family hidebysig virtual final
	          instance void  __Reactive_UpdateModel(object A_1) cil managed noinlining
	  {
	    // Code size       1 (0x1)
	    .maxstack  8
	    IL_0000:  ret
	  } // end of method ShellViewModel::__Reactive_UpdateModel

	} // end of class Chefs.Presentation.ShellViewModel

Indeed, no `ShellViewModel::.ctor` method!

Fix this by *removing* `$(IsAotCompatible)`=true.

(It was the change to `$(IsAotCompatible)` within e838af9 which broke
startup, *not* the changes to `$(PublishAot)`!)
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Matthew Rajala <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
The canary pipeline templates on canaries/dev still install .NET SDK
9.0.200, while main moved the project to .NET 10 (#1758). The updater
merges main at build time, but Azure reads the pipeline YAML from
canaries/dev at queue time and runs UseDotNet before the merge step, so
the agent gets a .NET 9 SDK and fails to parse net10.0-android:

  error NETSDK1139: The target platform identifier android was not recognized.

Merging main here updates DotNetVersion to 10.0.302 and the net10 TFMs in
the build scripts. All canary-only changes (dev feed, aot.profile, test
script tweaks) are preserved.

Verified locally: net10.0-desktop builds and net10.0-browserwasm publishes
(emcc compile + link succeed), which was the WASM job's failure.

Build: https://dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_build/results?buildId=233163&view=results

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@rajamatt rajamatt self-assigned this Sep 11, 2026
@rajamatt
rajamatt requested a review from kazo0 September 11, 2026 19:45
@rajamatt
rajamatt marked this pull request as ready for review September 11, 2026 19:45
@rajamatt
rajamatt removed the request for review from kazo0 September 11, 2026 19:46
@mergify

mergify Bot commented Sep 11, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@rajamatt
rajamatt merged commit e3c0eff into canaries/dev Sep 11, 2026
4 checks passed
@rajamatt
rajamatt deleted the dev/mara/canary-chefs-net10 branch September 11, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants