Skip to content

Commit d3fcc2f

Browse files
committed
Move to .NET 9
1 parent 51f81ad commit d3fcc2f

File tree

4 files changed

+41
-6
lines changed

4 files changed

+41
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "C# (.NET)",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/dotnet:1-6.0-bookworm",
6+
"image": "mcr.microsoft.com/devcontainers/dotnet:1-9.0-bookworm",
77
"features": {
88
"ghcr.io/devcontainers/features/node:1": {},
99
"ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools:1": {}

api/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Microsoft.Extensions.Configuration;
55

66
var host = new HostBuilder()
7-
.ConfigureFunctionsWorkerDefaults()
7+
.ConfigureFunctionsWebApplication()
88
.Build();
99

1010
host.Run();

api/azure-search-function.csproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
55
<OutputType>Exe</OutputType>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<RootNamespace>dotnet_fn</RootNamespace>
99
</PropertyGroup>
1010
<ItemGroup>
11+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
1112
<PackageReference Include="Azure.Search.Documents" Version="11.4.0" />
12-
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.8.0" />
13-
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
14-
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.7.0" />
13+
<!-- Application Insights isn't enabled by default. See https://aka.ms/AAt8mw4. -->
14+
<!-- <PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" /> -->
15+
<!-- <PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.0.0" /> -->
16+
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
17+
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />
18+
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.0.0" />
19+
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.0" />
1520
</ItemGroup>
1621
<ItemGroup>
1722
<None Update="host.json">

azure-search-static-web-app.sln

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "azure-search-function", "api\azure-search-function.csproj", "{F04A3EAA-1925-5D27-BD32-CB5A41208BC0}"
6+
EndProject
7+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BulkInsert", "bulk-insert\BulkInsert.csproj", "{1829AA28-8389-0E06-4AFD-5A102CFC3015}"
8+
EndProject
9+
Global
10+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
11+
Debug|Any CPU = Debug|Any CPU
12+
Release|Any CPU = Release|Any CPU
13+
EndGlobalSection
14+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15+
{F04A3EAA-1925-5D27-BD32-CB5A41208BC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{F04A3EAA-1925-5D27-BD32-CB5A41208BC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{F04A3EAA-1925-5D27-BD32-CB5A41208BC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{F04A3EAA-1925-5D27-BD32-CB5A41208BC0}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{1829AA28-8389-0E06-4AFD-5A102CFC3015}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{1829AA28-8389-0E06-4AFD-5A102CFC3015}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{1829AA28-8389-0E06-4AFD-5A102CFC3015}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{1829AA28-8389-0E06-4AFD-5A102CFC3015}.Release|Any CPU.Build.0 = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(SolutionProperties) = preSolution
25+
HideSolutionNode = FALSE
26+
EndGlobalSection
27+
GlobalSection(ExtensibilityGlobals) = postSolution
28+
SolutionGuid = {44BED4D7-92E7-4267-9A54-9EE90601BD58}
29+
EndGlobalSection
30+
EndGlobal

0 commit comments

Comments
 (0)