From f5b191dd435cb2c1ef32835524584ca1d7f88d33 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Tue, 27 Oct 2026 14:52:41 -0600 Subject: [PATCH] Leave mobile ONNX runtimes out of the tool package The tool package grew from 4.8 MB at 1.0.0-beta.4 to 168 MB at 1.0.0-rc.1. ONNX Runtime, added for the semantic reranker (#110), ships native binaries for iOS and Android next to the desktop and server ones, and a framework-dependent publish copies them all. Those two files alone were 114 MB, and the emulator can't run on either platform. Remove runtimes/ios and runtimes/android from the publish output, which is what `dotnet pack` packs for a tool. The package is now 55 MB. The container image loses the same files. Co-Authored-By: Claude Opus 5.5 --- AzureSearchEmulator/AzureSearchEmulator.csproj | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/AzureSearchEmulator/AzureSearchEmulator.csproj b/AzureSearchEmulator/AzureSearchEmulator.csproj index 993f12d..c34d008 100644 --- a/AzureSearchEmulator/AzureSearchEmulator.csproj +++ b/AzureSearchEmulator/AzureSearchEmulator.csproj @@ -50,4 +50,16 @@ + + + + + + +