File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 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" : {}
Original file line number Diff line number Diff line change 44using Microsoft . Extensions . Configuration ;
55
66var host = new HostBuilder ( )
7- . ConfigureFunctionsWorkerDefaults ( )
7+ . ConfigureFunctionsWebApplication ( )
88 . Build ( ) ;
99
1010host . Run ( ) ;
Original file line number Diff line number Diff line change 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" >
You can’t perform that action at this time.
0 commit comments