Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions AzureSearchEmulator/AzureSearchEmulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,16 @@
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<!-- ONNX Runtime ships native binaries for iOS and Android alongside the desktop and server ones,
and a framework-dependent publish copies every one of them. The emulator cannot run on either
mobile platform, and those two files alone added over 110 MB to the tool package. Dropped
from the publish output, which is also what `dotnet pack` packs for a tool. -->
<Target Name="ExcludeMobileNativeRuntimes" AfterTargets="ComputeResolvedFilesToPublishList">
<ItemGroup>
<ResolvedFileToPublish Remove="@(ResolvedFileToPublish)"
Condition="$([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('\', '/').StartsWith('runtimes/ios/'))
Or $([System.String]::Copy('%(ResolvedFileToPublish.RelativePath)').Replace('\', '/').StartsWith('runtimes/android/'))" />
</ItemGroup>
</Target>

</Project>
Loading