Skip to content

Commit ce5dfbb

Browse files
committed
.NET 9 build
1 parent feabe79 commit ce5dfbb

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
# Set up
1818

1919
- name: Setup .NET
20-
uses: actions/setup-dotnet@v4.0.1
20+
uses: actions/setup-dotnet@v4.1.0
2121
with:
2222
dotnet-version: |
23-
8.0.x
23+
9.0.x
2424
2525
# Check out
2626

2727
- name: Check out ${{env.NAME}}
28-
uses: actions/checkout@v4.2.1
28+
uses: actions/checkout@v4.2.2
2929

3030
# Build
3131

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ The LPRun is the LINQPad driver's unit/integration tests runner. Can be used for
3333

3434
.NET versions supported by LPRun are listed below. In case of unsupported version LPRun fallbacks to the latest production .NET installed.
3535

36-
| LPRun | .NET 8.0 | .NET 7.0 | .NET 6.0 | .NET 5.0 | .NET 3.1 |
37-
|:-------:|:--------:|:--------:|:--------:|:--------:|:--------:|
38-
| 8 | ✔️ | ✔️ | ✔️ | | |
39-
| 7 | | ✔️ | ✔️ | ✔️ | ✔️ |
36+
| LPRun | .NET 9.0 | .NET 8.0 | .NET 7.0 | .NET 6.0 | .NET 5.0 | .NET 3.1 |
37+
|:-------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|
38+
| 8 | ✔️ | ✔️ | ✔️ | ✔️ | | |
39+
| 7 | | | ✔️ | ✔️ | ✔️ | ✔️ |
4040

4141
Use the following script to check the .NET version used by LPRun:
4242

Src/LPRun/Context.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ namespace LPRun;
1616
/// </summary>
1717
public static class Context
1818
{
19+
private const int MinVersionSupported = 6;
20+
private const int MaxVersionSupported = 9;
21+
1922
private static readonly string BaseDir = GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().Location).LocalPath)!;
2023

2124
private static readonly string LpRunDir = GetFullPath("LPRun");
@@ -26,7 +29,7 @@ public static class Context
2629
ThrowNotSupportedFrameworkException(IsNetNative, "Native") ??
2730
FrameworkInfo.Version.Major switch
2831
{
29-
>= 6 and <= 8 => $"LPRun8-{(IsArm ? "arm" : "x")}{(Is64Bit ? "64" : "86")}.exe",
32+
>= MinVersionSupported and <= MaxVersionSupported => $"LPRun8-{(IsArm ? "arm" : "x")}{(Is64Bit ? "64" : "86")}.exe",
3033
_ => ThrowNotSupportedNetVersionException()
3134
};
3235

Src/LPRun/LPRun.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>netstandard2.1;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
44
<Deterministic>true</Deterministic>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.303",
3+
"version": "9.0.100",
44
"rollForward": "latestFeature"
55
}
66
}

0 commit comments

Comments
 (0)