Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
<PackageVersion Include="System.Numerics.Tensors" Version="10.0.3" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.3" />
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.3" />
<PackageVersion Include="diskann-garnet" Version="1.0.23" />
<PackageVersion Include="diskann-garnet" Version="1.0.26" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions DiskANN
Submodule DiskANN added at a2bb12
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.201",
"version": "10.0.104",
"rollForward": "latestMajor",
"allowPrerelease": false
}
Expand Down
15 changes: 15 additions & 0 deletions libs/server/Garnet.server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,19 @@
<PackageReference Include="diskann-garnet" />
</ItemGroup>

<!-- Copy locally-built diskann_garnet native library over the NuGet-provided one.
Usage: dotnet build -c Release -p:UseLocalDiskANN=true
Requires: cargo build (or cargo build release) in DiskANN/diskann-garnet first.
DiskANNProfile: debug (default) or release, maps to Cargo profile. -->
<Target Name="CopyLocalDiskANN" AfterTargets="Build" Condition="'$(UseLocalDiskANN)' == 'true'">
<PropertyGroup>
<DiskANNProfile Condition="'$(DiskANNProfile)' == '' and '$(Configuration)' == 'Release'">release</DiskANNProfile>
<DiskANNProfile Condition="'$(DiskANNProfile)' == ''">debug</DiskANNProfile>
<LocalDiskANNDll>$([MSBuild]::NormalizePath('$(MSBuildThisFileDirectory)..\..\DiskANN\target\$(DiskANNProfile)\diskann_garnet.dll'))</LocalDiskANNDll>
<NativeOutputDir>$(OutputPath)runtimes\win-x64\native\</NativeOutputDir>
</PropertyGroup>
<Copy SourceFiles="$(LocalDiskANNDll)" DestinationFolder="$(NativeOutputDir)" SkipUnchangedFiles="true" />
<Message Importance="High" Text="Copied local diskann_garnet.dll ($(DiskANNProfile)) to $(NativeOutputDir)" />
</Target>

</Project>
Loading