Skip to content

Simplify shared libraries to net10.0#132

Merged
Redth merged 2 commits intomainfrom
fix/macos-appkit-publish-restore
Mar 27, 2026
Merged

Simplify shared libraries to net10.0#132
Redth merged 2 commits intomainfrom
fix/macos-appkit-publish-restore

Conversation

@Redth
Copy link
Copy Markdown
Owner

@Redth Redth commented Mar 26, 2026

Summary

  • make MauiSherpa.Core and MauiSherpa.Workloads plain net10.0 libraries
  • replace the one compile-time platform label in CopilotSystemPromptBuilder with runtime OS detection
  • remove the temporary MacOSAppBuild / LinuxGtkHeadBuild project-reference and workflow plumbing

Why

The failing macOS AppKit CI publish was caused by static-graph restore walking the shared libraries as multi-targeted RID-specific projects and requesting missing Microsoft.NETCore.App.Runtime.Mono.osx-* 10.0.5 packs. The cleaner fix is to stop multi-targeting those libraries entirely.

Validation

  • dotnet test tests/MauiSherpa.Core.Tests/MauiSherpa.Core.Tests.csproj -v minimal
  • dotnet test tests/MauiSherpa.Workloads.Tests/MauiSherpa.Workloads.Tests.csproj -v minimal
  • dotnet publish src/MauiSherpa.MacOS/MauiSherpa.MacOS.csproj -f net10.0-macos -c Release -r osx-arm64 -p:CreatePackage=false -p:AppVersion=0.0.0-local -p:AppCommitSha=local
  • dotnet publish src/MauiSherpa.MacOS/MauiSherpa.MacOS.csproj -f net10.0-macos -c Release -r osx-x64 -p:CreatePackage=false -p:AppVersion=0.0.0-local -p:AppCommitSha=local

Refs failing run: https://github.com/Redth/MAUI.Sherpa/actions/runs/23622674550/job/68805288786

Redth and others added 2 commits March 26, 2026 16:43
Limit the AppKit publish path to net10.0 for shared libraries so RID-specific restore does not request missing Microsoft.NETCore.App.Runtime.Mono.osx-* 10.0.5 packs during CI publish.

Validated with local arm64 and x64 dotnet publish runs for src/MauiSherpa.MacOS/MauiSherpa.MacOS.csproj.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
MauiSherpa.Core and MauiSherpa.Workloads do not need platform-specific target frameworks. Collapse them to net10.0, switch CopilotSystemPromptBuilder platform labeling to runtime OS detection, and remove the MacOSAppBuild/LinuxGtkHeadBuild workaround plumbing from project references and CI.

Validated with Core and Workloads tests plus macOS AppKit publish for both osx-arm64 and osx-x64.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Redth Redth changed the title Fix macOS AppKit publish restore in CI Simplify shared libraries to net10.0 Mar 26, 2026
@Redth Redth merged commit 0790c95 into main Mar 27, 2026
7 checks passed
@Redth Redth deleted the fix/macos-appkit-publish-restore branch March 27, 2026 00:01
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.

1 participant