Skip to content

Commit 7b1ca23

Browse files
Merge pull request #72 from IowaComputerGurus/feature/fix-build
Fixed build and updated dependencies
2 parents 97ab4e7 + 9c66749 commit 7b1ca23

File tree

5 files changed

+34
-27
lines changed

5 files changed

+34
-27
lines changed

.github/workflows/ci-build.yml

+13-9
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ jobs:
2121
- name: Ensure .NET Installed
2222
uses: actions/setup-dotnet@v3
2323
with:
24-
dotnet-version: 6.0.x
24+
dotnet-version: 8.0.x
2525

2626
- name: Install GitVersion
27-
run: dotnet tool install --global GitVersion.Tool
28-
27+
uses: gittools/actions/gitversion/[email protected]
28+
with:
29+
versionSpec: '6.x'
30+
2931
- name: Determine Version
3032
id: gitversion
31-
uses: gittools/actions/gitversion/execute@v0.9.15
33+
uses: gittools/actions/gitversion/execute@v3.0.0
3234
with:
33-
useConfigFile: true
35+
useConfigFile: true
3436

3537
- name: Restore Packages
3638
run: dotnet restore "${{ env.solution-path }}"
@@ -79,13 +81,15 @@ jobs:
7981
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
8082
8183
- name: Install GitVersion
82-
run: dotnet tool install --global GitVersion.Tool
83-
84+
uses: gittools/actions/gitversion/[email protected]
85+
with:
86+
versionSpec: '6.x'
87+
8488
- name: Determine Version
8589
id: gitversion
86-
uses: gittools/actions/gitversion/execute@v0.9.15
90+
uses: gittools/actions/gitversion/execute@v3.0.0
8791
with:
88-
useConfigFile: true
92+
useConfigFile: true
8993

9094
- name: Build and analyze
9195
env:

.github/workflows/release-build.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ jobs:
2020
- name: Ensure .NET Installed
2121
uses: actions/setup-dotnet@v3
2222
with:
23-
dotnet-version: 6.0.x
23+
dotnet-version: 8.0.x
2424

2525
- name: Install GitVersion
26-
run: dotnet tool install --global GitVersion.Tool
27-
26+
uses: gittools/actions/gitversion/[email protected]
27+
with:
28+
versionSpec: '6.x'
29+
2830
- name: Determine Version
2931
id: gitversion
30-
uses: gittools/actions/gitversion/execute@v0.9.15
32+
uses: gittools/actions/gitversion/execute@v3.0.0
3133
with:
32-
useConfigFile: true
34+
useConfigFile: true
3335

3436
- name: Restore Packages
3537
run: dotnet restore "${{ env.solution-path }}"

GitVersion.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ next-version: 5.2.0
33
branches:
44
develop:
55
regex: develop
6-
tag: 'alpha'
6+
label: 'alpha'
77
increment: Patch
8+
prevent-increment:
9+
when-current-commit-tagged: true
810
source-branches: []
911
pull-request:
1012
regex: (pull|pull\-requests|pr)[/-]
11-
tag: 'pr'
12-
tag-number-pattern: '[/-](?<number>\d+)[-/]'
13+
label: 'pr'
14+
label-number-pattern: '[/-](?<number>\d+)[-/]'
1315
increment: Patch
14-
prevent-increment-of-merged-branch-version: false
1516
is-release-branch: false
1617
source-branches: []
1718
ignore:

src/AspNetCore.Utilities.Tests/AspNetCore.Utilities.Tests.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<RootNamespace>ICG.AspNetCore.Utilities.Tests</RootNamespace>
77
<OutputType>Library</OutputType>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
12-
<PackageReference Include="Moq" Version="4.16.1" />
13-
<PackageReference Include="xunit" Version="2.4.1" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
12+
<PackageReference Include="Moq" Version="4.20.72" />
13+
<PackageReference Include="xunit" Version="2.9.2" />
14+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
</PackageReference>

src/AspNetCore.Utilities/AspNetCore.Utilities.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<RootNamespace>ICG.AspNetCore.Utilities</RootNamespace>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -14,7 +14,7 @@
1414
<PackageId>ICG.AspNetCore.Utilities</PackageId>
1515
<Title>AspNetCore Utilities</Title>
1616
<Description>A collection of utilities designed to impove the unit-testability or speed development of AspNetCore development projects.</Description>
17-
<Copyright>Copyright 2021, IowaComputerGurus, Subject to the MIT License</Copyright>
17+
<Copyright>Copyright 2024, IowaComputerGurus, Subject to the MIT License</Copyright>
1818
<PackageProjectUrl>https://github.com/IowaComputerGurus/aspnetcore.utilities</PackageProjectUrl>
1919
<PackageTags>aspnetcore;utility;unit-testing</PackageTags>
2020
<RepositoryUrl>https://github.com/IowaComputerGurus/aspnetcore.utilities</RepositoryUrl>
@@ -37,8 +37,8 @@
3737
</ItemGroup>
3838

3939
<ItemGroup>
40-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
41-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
40+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
41+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
4242
<PrivateAssets>all</PrivateAssets>
4343
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4444
</PackageReference>

0 commit comments

Comments
 (0)