Skip to content

Commit a9406aa

Browse files
authored
Merge pull request mayuki#21 from mayuki/feature/UpdateTargetFrameworks
Update target framework to .NET 8.0 and Drop support for .NET Framework 4.5
2 parents a2d0e14 + fb47cdd commit a9406aa

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
Build:
1414
# To build `net45` target, we need to run the build on Windows.
15-
runs-on: windows-latest
15+
runs-on: ubuntu-latest
1616
env:
1717
DOTNET_NOLOGO: true
1818
steps:
@@ -26,11 +26,11 @@ jobs:
2626
- run: dotnet build -c Release
2727

2828
# Run Unit tests
29-
#- run: dotnet test -c Release --no-build --logger trx --results-directory $GITHUB_WORKSPACE/artifacts
29+
#- run: dotnet test -c Release --no-build --logger trx --results-directory ./artifacts
3030

3131
# Packaging
3232
- name: dotnet pack Kurukuru
33-
run: dotnet pack -c Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output $env:GITHUB_WORKSPACE/artifacts ./Kurukuru/Kurukuru.csproj
33+
run: dotnet pack -c Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output ./artifacts ./Kurukuru/Kurukuru.csproj
3434

3535
# Upload & Publish
3636
- uses: actions/upload-artifact@master

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
if: "contains(github.ref, 'refs/tags')"
1111

1212
# To build `net45` target, we need to run the build on Windows.
13-
runs-on: windows-latest
13+
runs-on: ubuntu-latest
1414
env:
1515
DOTNET_NOLOGO: true
1616

@@ -34,7 +34,7 @@ jobs:
3434
run: |
3535
dotnet restore
3636
dotnet build -c Release
37-
dotnet pack -c Release -o $env:GITHUB_WORKSPACE/artifacts -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
37+
dotnet pack -c Release -o ./artifacts -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
3838
3939
- uses: actions/upload-artifact@master
4040
with:
@@ -43,4 +43,4 @@ jobs:
4343

4444
- name: "Push to NuGet.org"
4545
run: |
46-
dotnet nuget push "$env:GITHUB_WORKSPACE\artifacts\*.nupkg" --skip-duplicate -k ${{ steps.op-load-secret.outputs.NUGET_AUTH_TOKEN }} -s https://api.nuget.org/v3/index.json
46+
dotnet nuget push ./artifacts/*.nupkg --skip-duplicate -k ${{ steps.op-load-secret.outputs.NUGET_AUTH_TOKEN }} -s https://api.nuget.org/v3/index.json

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<VersionPrefix>1.4.2</VersionPrefix>
4+
<VersionPrefix>1.5.0</VersionPrefix>
55
<LangVersion>latest</LangVersion>
66

77
<Authors>Mayuki Sawatari</Authors>

Kurukuru/Kurukuru.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-
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
3+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
44
<Nullable>enable</Nullable>
55
</PropertyGroup>
66
</Project>

0 commit comments

Comments
 (0)