Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Commit 149ac6e

Browse files
authored
Merge pull request #61 from HeidiSteen/heidist-test
Updated to .NET 6 and client library
2 parents e15a8ce + c3fab03 commit 149ac6e

4 files changed

Lines changed: 16 additions & 14 deletions

File tree

DotNetHowTo/DotNetHowTo/DotNetHowTo.csproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Azure.Search.Documents" Version="11.1.1" />
10-
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
11-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
12-
<PackageReference Include="Microsoft.Spatial" Version="7.7.0" />
13-
<PackageReference Include="System.Text.Json" Version="4.7.2" />
9+
<PackageReference Include="Azure.Search.Documents" Version="11.4.0" />
10+
<PackageReference Include="Microsoft.Azure.Core.Spatial" Version="1.1.0" />
11+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
12+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
13+
<PackageReference Include="Microsoft.Spatial" Version="7.12.3" />
14+
<PackageReference Include="System.Text.Json" Version="6.0.6" />
1415
</ItemGroup>
1516

1617
<ItemGroup>

DotNetHowTo/DotNetHowTo/Hotel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public partial class Hotel
4545
[SearchableField]
4646
public Address Address { get; set; }
4747

48-
[SearchableField(IsFilterable = true, IsSortable = true)]
48+
[JsonConverter(typeof(Azure.Core.Serialization.MicrosoftSpatialGeoJsonConverter))]
49+
[SimpleField(IsFilterable = true, IsSortable = true)]
4950
public GeographyPoint Location { get; set; }
5051

5152
public Room[] Rooms { get; set; }

DotNetHowTo/DotNetHowTo/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"SearchServiceEndPoint": "[Put your search service EndPoint here]",
2+
"SearchServiceEndPoint": "[Put your search service full URL here]",
33
"SearchIndexName": "hotels",
44
"SearchServiceAdminApiKey": "[Put your primary or secondary Admin API key here]",
55
"SearchServiceQueryApiKey": "[Put your primary or secondary Query API key here]"

DotNetHowToIndexers/DotNetHowToIndexers.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
<LangVersion>7.1</LangVersion>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Azure.Search.Documents" Version="11.1.1" />
11-
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
12-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
10+
<PackageReference Include="Azure.Search.Documents" Version="11.4.0" />
11+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
12+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
1313
<PackageReference Include="Microsoft.Rest.ClientRuntime.Azure" Version="3.3.19" />
14-
<PackageReference Include="Microsoft.Spatial" Version="7.7.1" />
15-
<PackageReference Include="System.Text.Json" Version="4.7.2" />
14+
<PackageReference Include="Microsoft.Spatial" Version="7.12.3" />
15+
<PackageReference Include="System.Text.Json" Version="6.0.6" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

0 commit comments

Comments
 (0)