Description:
When a .NET MAUI Blazor application includes the SmartComponents.LocalEmbeddings NuGet package, the project fails to build specifically for the Mac Catalyst and iOS target frameworks. The build completes successfully for Windows and Android, but fails on macOS with the following error:
No matching framework found
However, updating the Microsoft.ML.OnnxRuntime package to the latest version (1.22.1) resolves the issue, allowing the project to build successfully across all platforms.
Steps to Reproduce:
- Create a new .NET MAUI Blazor project.
- Add the
SmartComponents.LocalEmbeddings NuGet package.
- Attempt to build the project targeting
net8.0-ios or net8.0-maccatalyst.
- Observe the build failure.
(or)
- Download the attached .NET MAUI Blazor project. BlazorMAUI.zip
- Attempt to build the project targeting
net8.0-ios or net8.0-maccatalyst.
- Observe the build failure.
Expected Behavior:
The project should build successfully for all target platforms, including Mac Catalyst and iOS.
Actual Behavior:
Build fails on Mac Catalyst and iOS with a framework mismatch error.
Environment:
- .NET SDK:
8.0.203
- MAUI Version:
8.0.x
- macOS:
macOS Sequoia 15.6
- Target Frameworks:
net8.0-ios, net8.0-maccatalyst
- Device: Simulator and Physical Device
- SmartComponents.LocalEmbeddings Version:
0.1.0-preview10148
- Microsoft.ML.OnnxRuntime Version:
1.21.0 (fails), 1.22.1 (works)
Workaround:
Manually updating the Microsoft.ML.OnnxRuntime package to version 1.22.1 resolves the build issue.
<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.22.1" />
Description:
When a .NET MAUI Blazor application includes the
SmartComponents.LocalEmbeddingsNuGet package, the project fails to build specifically for the Mac Catalyst and iOS target frameworks. The build completes successfully for Windows and Android, but fails on macOS with the following error:No matching framework found
However, updating the
Microsoft.ML.OnnxRuntimepackage to the latest version (1.22.1) resolves the issue, allowing the project to build successfully across all platforms.BlazorMAUI.zip
Steps to Reproduce:
(or)
Expected Behavior:
The project should build successfully for all target platforms, including Mac Catalyst and iOS.
Actual Behavior:
Build fails on Mac Catalyst and iOS with a framework mismatch error.
Environment:
8.0.2038.0.xmacOS Sequoia 15.6net8.0-ios,net8.0-maccatalyst0.1.0-preview101481.21.0(fails),1.22.1(works)Workaround:
Manually updating the
Microsoft.ML.OnnxRuntimepackage to version1.22.1resolves the build issue.