Skip to content

Commit 49e2511

Browse files
chore: update dotnet to 9 (#91)
* update dotnet to 9 * update aspnet --------- Co-authored-by: Angela The <angela.the@skylight.digital>
1 parent 722cb39 commit 49e2511

File tree

12 files changed

+32
-32
lines changed

12 files changed

+32
-32
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup dotnet
2323
uses: actions/setup-dotnet@v3
2424
with:
25-
dotnet-version: "8.0.x"
25+
dotnet-version: "9.0.x"
2626
- name: Run tests
2727
run: dotnet test src/Dibbs.FhirConverterApi.UnitTests
2828

@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup dotnet
3535
uses: actions/setup-dotnet@v3
3636
with:
37-
dotnet-version: "8.0.x"
37+
dotnet-version: "9.0.x"
3838
- name: Run tests
3939
run: dotnet test src/Dibbs.FhirConverterApi.FunctionalTests
4040

@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup dotnet
4747
uses: actions/setup-dotnet@v3
4848
with:
49-
dotnet-version: "8.0.x"
49+
dotnet-version: "9.0.x"
5050
- name: Run tests
5151
run: dotnet test --filter FullyQualifiedName~Converter.UnitTests
5252

@@ -58,7 +58,7 @@ jobs:
5858
- name: Setup dotnet
5959
uses: actions/setup-dotnet@v3
6060
with:
61-
dotnet-version: "8.0.x"
61+
dotnet-version: "9.0.x"
6262
- name: Run tests
6363
run: dotnet test --filter FullyQualifiedName~Converter.FunctionalTests --logger "console;verbosity=detailed"
6464
env:
@@ -72,7 +72,7 @@ jobs:
7272
- name: Setup dotnet
7373
uses: actions/setup-dotnet@v3
7474
with:
75-
dotnet-version: "8.0.x"
75+
dotnet-version: "9.0.x"
7676
- name: Run tests
7777
run: dotnet test --filter FullyQualifiedName~Tool.UnitTests
7878

@@ -84,7 +84,7 @@ jobs:
8484
- name: Setup dotnet
8585
uses: actions/setup-dotnet@v3
8686
with:
87-
dotnet-version: "8.0.x"
87+
dotnet-version: "9.0.x"
8888
- name: Run tests
8989
run: dotnet test --filter FullyQualifiedName~Converter.FunctionalTests.ConvertDataTemplateDirectoryProviderFunctionalTests.GivenEcrDocument_WhenConverting_ExpectedFhirResourceShouldBeValid --logger "console;verbosity=detailed"
9090
env:

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<Product>Microsoft Health</Product>
1212
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1313
<RepoRootPath>$(MSBuildThisFileDirectory)</RepoRootPath>
14-
<LatestFramework>net8.0</LatestFramework>
14+
<LatestFramework>net9.0</LatestFramework>
1515
</PropertyGroup>
1616

1717
<PropertyGroup>

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

44
COPY . ./
@@ -18,7 +18,7 @@ RUN curl 'https://rxnav.nlm.nih.gov/REST/allstatus.json?status=active' \
1818
| jq --raw-output '[["code", "name"]] + [.minConceptGroup.minConcept[] | [.rxcui, .name]] | .[] | @csv' \
1919
> output/rxnorm.csv
2020

21-
FROM mcr.microsoft.com/dotnet/aspnet:8.0
21+
FROM mcr.microsoft.com/dotnet/aspnet:9.0
2222
WORKDIR /App
2323
COPY --from=build /App/output .
2424
COPY --from=build /App/data/Templates ./templates

build/analyze.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ steps:
99
- task: UseDotNet@2
1010
displayName: Use .NET Core sdk
1111
inputs:
12-
version: 8.0.x
12+
version: 9.0.x
1313
selectOrConfig: configs
1414
nugetConfigPath: nuget.config
1515

@@ -55,9 +55,9 @@ steps:
5555
targetDirectory: '$(Build.SourcesDirectory)/docs/deploy'
5656
excludePassesFromLog: false
5757

58-
- task: TemplateAnalyzer@3
59-
displayName: 'Run Template Analyzer'
60-
inputs:
58+
- task: TemplateAnalyzer@3
59+
displayName: 'Run Template Analyzer'
60+
inputs:
6161
ToolVersion: Latest
6262
AnalyzeDirectory: '$(Build.SourcesDirectory)/docs/deploy'
6363
Verbose: false
@@ -88,7 +88,7 @@ steps:
8888
userProvideBuildInfo: 'msBuildInfo'
8989
msBuildArchitecture: 'DotNetCore'
9090
msBuildCommandline: 'dotnet build $(Build.SourcesDirectory)/Fhir.Liquid.Converter.sln --configuration $(buildConfiguration) -p:ContinuousIntegrationBuild=true'
91-
91+
9292
- task: BinSkim@4
9393
inputs:
9494
toolVersion: Latest
@@ -158,7 +158,7 @@ steps:
158158
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/main'))
159159
displayName: 'TSA upload'
160160
inputs:
161-
tsaVersion: 'TsaV2'
161+
tsaVersion: 'TsaV2'
162162
codebase: 'NewOrUpdate'
163163
GdnPublishTsaOnboard: false
164164
GdnPublishTsaConfigFile: '$(Build.SourcesDirectory)\.config\tsaoptions.json'

build/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ parameters:
44

55
steps:
66
- task: UseDotNet@2
7-
displayName: 'Use .NET Core sdk 8.0.x'
7+
displayName: 'Use .NET Core sdk 9.0.x'
88
inputs:
9-
version: 8.0.x
9+
version: 9.0.x
1010
selectOrConfig: configs
1111
nugetConfigPath: nuget.config
1212

build/publish-nugets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
steps:
22
- task: UseDotNet@2
3-
displayName: 'Use .NET Core sdk 8.0.x'
3+
displayName: 'Use .NET Core sdk 9.0.x'
44
inputs:
5-
version: 8.0.x
5+
version: 9.0.x
66
selectOrConfig: configs
77
nugetConfigPath: nuget.config
88

src/Dibbs.FhirConverterApi.FunctionalTests/Dibbs.FhirConverterApi.FunctionalTests.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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.13" />
13+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.9" />
1414
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
1515
<PackageReference Include="Snapshooter.Xunit" Version="1.0.1" />
1616
<PackageReference Include="xunit" Version="2.4.2" />

src/Dibbs.FhirConverterApi.UnitTests/Dibbs.FhirConverterApi.UnitTests.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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.13" />
13+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.9" />
1414
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
1515
<PackageReference Include="Snapshooter.Xunit" Version="1.0.1" />
1616
<PackageReference Include="xunit" Version="2.4.2" />

src/Dibbs.FhirConverterApi/Dibbs.FhirConverterApi.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<InvariantGlobalization>true</InvariantGlobalization>
88
</PropertyGroup>
99

1010
<ItemGroup>
1111
<PackageReference Include="HL7-V2" Version="3.5.0" />
12-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0" />
13-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
12+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.9" />
13+
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.4" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

src/Microsoft.Health.Fhir.Liquid.Converter.Tool.UnitTests/Microsoft.Health.Fhir.Liquid.Converter.Tool.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.13" />
17+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.9" />
1818
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
1919
<PackageReference Include="xunit" Version="2.4.1" />
2020
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">

0 commit comments

Comments
 (0)