Skip to content

Commit 3d4eef7

Browse files
authored
Merge pull request #22 from diberry/diberry/feature-move-to-dotnet-9
Move to .NET 9
2 parents 51f81ad + 797790d commit 3d4eef7

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-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">

0 commit comments

Comments
 (0)