Skip to content

Commit 7c14d7d

Browse files
authored
Upgrade to dotnet10 (#376)
* updated .net version * updated actions files * updated nuget packages * updated actions * updated packages * update main package
1 parent c85c351 commit 7c14d7d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup .NET
4040
uses: actions/setup-dotnet@v5
4141
with:
42-
dotnet-version: 9.0.x
42+
dotnet-version: 10.0.x
4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
4545
uses: github/codeql-action/init@v4

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup .NET
2727
uses: actions/setup-dotnet@v5
2828
with:
29-
dotnet-version: 9.0.x
29+
dotnet-version: 10.0.x
3030
- name: Run automated unit and integration tests
3131
run: dotnet test PipelinesToActions/PipelinesToActions.Tests/PipelinesToActions.Tests.csproj --configuration Debug -e:CollectCoverage=true -e:CoverletOutput=TestResults/ -e:CoverletOutputFormat=lcov
3232
- run: |
@@ -42,10 +42,10 @@ jobs:
4242
run: dotnet publish PipelinesToActions/PipelinesToActions/PipelinesToActionsWeb.csproj --configuration Release -p:Version='${{ steps.gitversion.outputs.MajorMinorPatch }}'
4343
#Publish build artifacts to GitHub
4444
- name: Upload website build artifacts back to GitHub
45-
uses: actions/upload-artifact@v4
45+
uses: actions/upload-artifact@v5
4646
with:
4747
name: webapp
48-
path: PipelinesToActions/PipelinesToActions/bin/Release/net9.0/publish
48+
path: PipelinesToActions/PipelinesToActions/bin/Release/net10.0/publish
4949

5050

5151
sonarCloud:
@@ -57,7 +57,7 @@ jobs:
5757
uses: samsmithnz/SamsDotNetSonarCloudAction@v2.1
5858
with:
5959
projects: 'PipelinesToActions/PipelinesToActions/PipelinesToActionsWeb.csproj,PipelinesToActions/PipelinesToActions.Tests/PipelinesToActions.Tests.csproj'
60-
dotnet-version: '9.0.x'
60+
dotnet-version: '10.0.x'
6161
sonarcloud-organization: samsmithnz-github
6262
sonarcloud-project: samsmithnz_AzurePipelinesToGitHubActionsConverterWeb
6363
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

PipelinesToActions/PipelinesToActions.Tests/PipelinesToActions.Tests.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>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>
@@ -12,7 +12,7 @@
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
15-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.11" />
15+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.0" />
1616
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1717
<PackageReference Include="NSubstitute" Version="5.3.0" />
1818
<PackageReference Include="MSTest.TestAdapter" Version="4.0.2" />

PipelinesToActions/PipelinesToActions/PipelinesToActionsWeb.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ApplicationInsightsResourceId>/subscriptions/65b8d298-e5bd-4735-912e-8b9c510c4e00/resourcegroups/PipelinesToActions/providers/microsoft.insights/components/PipelinesToActions-AppInsights</ApplicationInsightsResourceId>
66
<Version>1.0.0.0</Version>
77
<Deterministic>false</Deterministic>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="AzurePipelinesToGitHubActionsConverter.Core" Version="1.4.1" />
11+
<PackageReference Include="AzurePipelinesToGitHubActionsConverter.Core" Version="1.4.3" />
1212
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.23.0" />
1313
<PackageReference Include="Microsoft.ApplicationInsights.SnapshotCollector" Version="1.4.6" />
1414
</ItemGroup>

0 commit comments

Comments
 (0)