Skip to content

Commit c784b9a

Browse files
authored
[F#/Oxpecker] Update to .NET 9 (#9449)
* [F#/Oxpecker] Updated to .NET 9 * [F#/Oxpecker] Fixed dockerfile
1 parent b747ccf commit c784b9a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

frameworks/FSharp/oxpecker/oxpecker.dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
22
WORKDIR /app
33
COPY src/App .
44
RUN dotnet publish -c Release -o out
55

6-
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
6+
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
77

8+
ENV DOTNET_GCDynamicAdaptationMode=0
89
ENV DOTNET_ReadyToRun 0
10+
ENV DOTNET_HillClimbing_Disable=1
911
ENV ASPNETCORE_hostBuilder__reloadConfigOnChange false
1012

1113
ENV URLS http://+:8080

frameworks/FSharp/oxpecker/src/App/App.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<EnableDefaultContentItems>false</EnableDefaultContentItems>
66
</PropertyGroup>
77

@@ -14,7 +14,7 @@
1414

1515
<ItemGroup>
1616
<PackageReference Update="FSharp.Core" Version="9.0.100" />
17-
<PackageReference Include="Oxpecker" Version="1.0.0" />
17+
<PackageReference Include="Oxpecker" Version="1.1.1" />
1818
<PackageReference Include="Oxpecker.ViewEngine" Version="1.0.0" />
1919
<PackageReference Include="Npgsql" Version="9.0.1" />
2020
<PackageReference Include="SpanJson" Version="4.2.1" />

frameworks/FSharp/oxpecker/src/App/Db.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module Db =
6464

6565
let loadMultipleRows (count: int) =
6666
task {
67-
use db = new NpgsqlConnection(MultiplexedConnectionString)
67+
use db = new NpgsqlConnection(ConnectionString)
6868
do! db.OpenAsync()
6969
return! readMultipleRows count db
7070
}

0 commit comments

Comments
 (0)