Repository navigation
chore: Update project to target .NET 10.0 - #1758
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
There was a problem hiding this comment.
Pull request overview
This PR updates Uno Chefs to target .NET 10.0 across the app, API, AppHost, UI tests, CI/workflows, and developer tooling/docs, including aligning Aspire and OpenAPI/Swagger dependencies with the new runtime.
Changes:
- Retarget projects and build scripts from
net9.0-*tonet10.0-*(app, API, AppHost, UI tests, and pipelines). - Bump Aspire to the
13.x(net10) line and update OpenAPI/Swagger packages to compatible versions. - Refresh devcontainer + contributor tooling guidance (XamlStyler pin, .NET 10 base image, browser tooling for UI tests).
Reviewed changes
Copilot reviewed 39 out of 39 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| global.json | Removes stray invalid trailing content; keeps Uno.Sdk MSBuild SDK pin. |
| Directory.Packages.props | Updates central package versions for .NET 10 (Aspire 13.x, OpenAPI/Swashbuckle). |
| crosstargeting_override.props.sample | Updates sample TFMs to net10.0-*. |
| CONTRIBUTING.md | Pins XamlStyler.Console version to match CI guidance. |
| CLAUDE.md | Updates repo guidance/examples to .NET 10 and Aspire 13.x. |
| Chefs/Chefs.csproj | Retargets app multi-TFM list to net10.0-*. |
| Chefs.UITests/Chefs.UITests.csproj | Retargets UI tests to net10.0. |
| Chefs.AppHost/Program.cs | Updates AppHost run commands to net10.0-*. |
| Chefs.AppHost/Chefs.AppHost.csproj | Retargets AppHost to net10.0 and Aspire.AppHost.Sdk 13.x. |
| Chefs.Api/Program.cs | Adjusts OpenAPI namespace usage for updated OpenAPI packages. |
| Chefs.Api/Chefs.Api.csproj | Retargets API to net10.0. |
| build/workflow/templates/dotnet-install-windows.yml | Updates pipeline .NET SDK and uno-check versions for Windows. |
| build/workflow/templates/dotnet-install-mac.yml | Updates pipeline .NET SDK and uno-check versions for macOS. |
| build/workflow/templates/dotnet-install-linux.yml | Updates pipeline .NET SDK and uno-check versions for Linux. |
| build/workflow/templates/canary-updater.yml | Updates .NET SDK version used by canary updater template. |
| build/workflow/stage-uitests-wasm.yml | Updates WASM UI test TFM paths/parameters to .NET 10. |
| build/workflow/stage-uitests-ios.yml | Updates iOS UI test TFM parameters to .NET 10. |
| build/workflow/stage-uitests-android.yml | Updates Android UI test TFM parameters to .NET 10. |
| build/workflow/build-windows.yml | Updates WinAppSDK build TFM and output paths to .NET 10. |
| build/workflow/build-wasm.yml | Updates WASM build SDK/TFM/output paths to .NET 10. |
| build/workflow/build-skia-desktop.yml | Updates desktop build TFM and output paths to .NET 10. |
| build/workflow/build-ios.yml | Updates iOS build TFMs and artifact paths to .NET 10. |
| build/workflow/build-android.yml | Updates Android build TFMs and artifact paths to .NET 10. |
| build/scripts/wasm-uitest-run.sh | Updates WASM UI test publish paths and test binary TFM to .NET 10. |
| build/scripts/ios-uitest-run.sh | Updates iOS UI test binary TFM and build override to .NET 10. |
| build/scripts/ios-uitest-build.sh | Updates iOS UI test build TFM to .NET 10. |
| build/scripts/android-uitest-run.sh | Updates Android UI test paths and build override to .NET 10. |
| build/scripts/android-uitest-build.sh | Updates Android UI test publish TFM to .NET 10. |
| .vscode/tasks.json | Updates VS Code task TFMs to .NET 10. |
| .vscode/launch.json | Updates VS Code launch TFMs/program paths to .NET 10. |
| .run/Chefs.run.xml | Updates Rider/Run config TFMs to .NET 10. |
| .github/workflows/xaml-styler.yml | Pins XamlStyler and moves workflow to .NET 10 SDK. |
| .github/workflows/ci.yml | Updates GitHub Actions WASM build to .NET 10 + updated uno-check. |
| .devcontainer/ssh-wsl-host.sh | Updates comments/TFM references to .NET 10. |
| .devcontainer/README.md | Updates devcontainer docs for .NET 10 and new browser tooling approach. |
| .devcontainer/post-start.sh | Updates MCP registration notes/config for .NET 10 + uno-app server. |
| .devcontainer/init-firewall.sh | Updates comments referencing Android build TFM. |
| .devcontainer/Dockerfile | Moves base image to .NET 10 and switches browser tooling for UI tests. |
| .devcontainer/devcontainer.json | Updates comments referencing desktop TFM to .NET 10. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3b5af69 to
894906a
Compare
|
|
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 38 out of 38 changed files in this pull request and generated no new comments.
Suppressed comments (3)
.devcontainer/Dockerfile:268
- The Dockerfile creates stable symlinks at /usr/local/bin/chrome and /usr/local/bin/chromedriver, but the UNO_UITEST_* environment variables are set to the extracted /opt/* paths. Pointing the env vars at the symlink locations avoids coupling to the zip extraction directory layout and makes future Chrome install changes less brittle.
ENV UNO_UITEST_DRIVERPATH_CHROME=/opt/chromedriver-linux64
ENV UNO_UITEST_CHROME_BINARY_PATH=/opt/chrome-linux64/chrome
Chefs/Chefs.csproj:5
- The XML comment uses "i.e," which is grammatically incorrect; it should be "i.e.,".
<!-- To prevent that, we will pass TargetFrameworkOverride as a global property (i.e, dotnet build -p:TargetFrameworkOverride=net10.0-platform) -->
.github/workflows/ci.yml:35
- This workflow pins the .NET SDK to 10.0.100, while the Azure Pipeline templates in this PR are pinned to 10.0.302. Because this repo doesn't pin the SDK via global.json, using different patch versions across CI can lead to inconsistent restore/workload/build behavior between CI systems. Consider aligning the GitHub Actions SDK version to the same patch used elsewhere (or centralizing the version).
- name: Setup dotnet 10.0.100
uses: actions/[email protected]
with:
dotnet-version: '10.0.100'
|
|
- Use windows-2025-vs2026 image for Windows/Skia_Desktop: the .NET 10 SDK requires MSBuild 18, which VS 2022 images don't have - Select Xcode 26.1.1: .NET for iOS 26.1 requires Xcode 26.1 - Select JDK 17: the Android manifest merger is compiled for Java 17 - Pass UseDefaultPublishRuntimeIdentifier=false to the Android publish so the SDK doesn't add the host RID to restore, which fails with NU1102 since desktop Mono runtime packs are no longer published (dotnet/android#10722) - Skip androidsdk/androidemulator uno-check checkups in the WASM-only Static Web Apps job; the Android SDK auto-install crashes in the wasm-build container Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UTKfNzpZcQpDTv8ZnzkLux
* chore: fix InvalidOperationException from iOS App startup (#1749) 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)`!) * chore: update Uno.Sdk version to 6.6.42 in global.json (#1755) * chore: Add devcontainer setup for Uno Chefs project (#1756) Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: Matthew Rajala <[email protected]> * chore: Update project to target .NET 10.0 (#1758) Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> --------- Co-authored-by: Jonathan Pryor <[email protected]> Co-authored-by: Steve Bilogan <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
No description provided.