Skip to content

Commit 8031bcb

Browse files
authored
Merge pull request #1 from Sa1Gur/Sa1Gur-patch-1
.net 9.0 and xUnit v3
2 parents 1483ee5 + f08913a commit 8031bcb

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup .NET
1818
uses: actions/setup-dotnet@v4
1919
with:
20-
dotnet-version: 8.0.x
20+
dotnet-version: 9.0.x
2121
- name: Restore dependencies
2222
run: dotnet restore
2323
- name: Build

src/LeetcodeDailyChallengeReminder/LeetcodeDailyChallengeReminder.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Library</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
@@ -26,4 +26,4 @@
2626
<ItemGroup>
2727
<FrameworkReference Include="Microsoft.AspNetCore.App" />
2828
</ItemGroup>
29-
</Project>
29+
</Project>

src/LeetcodeDailyChallengeReminder/serverless.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
]
1313
},
1414
"Properties": {
15-
"Runtime": "dotnet8",
15+
"Runtime": "dotnet9",
1616
"CodeUri": ".",
1717
"MemorySize": 512,
1818
"Timeout": 30,
@@ -70,4 +70,4 @@
7070
}
7171
}
7272
}
73-
}
73+
}

test/LeetcodeDailyChallengeReminder.Tests/FunctionsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public FunctionsTest()
2727

2828
[Fact]
2929
[Description("We expect the test to fail when calling the bot after successfully getting credentials.")]
30-
public async void TestCredentials()
30+
public async Task TestCredentials()
3131
{
3232
TestLambdaContext context = new();
3333

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
6-
<IsTestProject>true</IsTestProject>
6+
<IsTestProject>true</IsTestProject>
7+
<OutputType>Exe</OutputType>
78
</PropertyGroup>
89
<ItemGroup>
910
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
1011
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
1112
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
13-
<PackageReference Include="xunit" Version="2.4.2" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
14+
<PackageReference Include="xunit.v3" Version="1.0.1" />
15+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1" />
1516
<PackageReference Include="Moq" Version="4.18.2" />
1617
</ItemGroup>
1718
<ItemGroup>
1819
<ProjectReference Include="../../src/LeetcodeDailyChallengeReminder/LeetcodeDailyChallengeReminder.csproj" />
1920
</ItemGroup>
20-
</Project>
21+
</Project>

0 commit comments

Comments
 (0)