Skip to content

Commit 863e1fc

Browse files
committed
Upgrade target framework to .NET 9.0 in test projects and Dockerfile
1 parent 79fe544 commit 863e1fc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ COPY ./tests/CompaniesHouse.IntegrationTests/*.csproj ./tests/CompaniesHouse.Int
1919
COPY ./tests/CompaniesHouse.ScenarioTests/*.csproj ./tests/CompaniesHouse.ScenarioTests/
2020
COPY ./tests/CompaniesHouse.Tests/*.csproj ./tests/CompaniesHouse.Tests/
2121
COPY ./samples/SampleProject/*.csproj ./samples/SampleProject/
22-
RUN dotnet restore
22+
RUN dotnet restore
2323

2424
FROM restore AS build
2525
ARG CONFIGURATION
@@ -28,7 +28,7 @@ ARG NUGET_PACKAGE_VERSION
2828
COPY ./src/ ./src/
2929
COPY ./tests/ ./tests/
3030
COPY ./samples/ ./samples/
31-
RUN dotnet build --configuration $CONFIGURATION --no-restore
31+
RUN dotnet build --configuration $CONFIGURATION
3232

3333
FROM build AS test
3434
ARG COMPANIES_HOUSE_API_KEY

tests/CompaniesHouse.Extensions.Microsoft.DependencyInjection.Tests/CompaniesHouse.Extensions.Microsoft.DependencyInjection.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<IsPackable>false</IsPackable>
55
</PropertyGroup>
66

tests/CompaniesHouse.IntegrationTests/CompaniesHouse.IntegrationTests.csproj

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

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

tests/CompaniesHouse.ScenarioTests/CompaniesHouse.ScenarioTests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<LangVersion>latest</LangVersion>
77
</PropertyGroup>

tests/CompaniesHouse.Tests/CompaniesHouse.Tests.csproj

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

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

0 commit comments

Comments
 (0)