Skip to content

Commit e90b97c

Browse files
committed
⬆️ Erhöhe .NET auf 9.0
1 parent ef5855c commit e90b97c

9 files changed

Lines changed: 97 additions & 63 deletions

File tree

.github/workflows/Library.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Library
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths-ignore:
7+
- .github/dependabot.yml
8+
- .vscode/**
9+
- .editorconfig
10+
- .gitignore
11+
pull_request:
12+
paths-ignore:
13+
- .github/dependabot.yml
14+
- .vscode/**
15+
- .editorconfig
16+
- .gitignore
17+
18+
env:
19+
DOTNET_NOLOGO: true
20+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
21+
DOTNET_CLI_TELEMETRY_OPTOUT: true
22+
23+
jobs:
24+
library:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4.2.2
30+
31+
- name: Setup .NET
32+
uses: actions/setup-dotnet@v4.3.1
33+
with:
34+
dotnet-version: 9.0
35+
36+
- name: Lint dotnet
37+
run: dotnet format --verify-no-changes --verbosity detailed
38+
39+
- name: Build with dotnet
40+
run: dotnet build --configuration Release
41+
42+
- name: Pack
43+
run: |
44+
TAG=$(date +%Y.%-m.%-d.)${{ github.run_number }}
45+
REPOSITORYURL=${{ github.server_url }}/${{ github.repository }}
46+
echo TAG=$TAG
47+
echo REPOSITORYURL=$REPOSITORYURL
48+
dotnet pack -p:PackageVersion=$TAG -p:RepositoryUrl=$REPOSITORYURL
49+
50+
- name: Publish
51+
if: github.event_name == 'push' && !github.event.dryrun
52+
run: |
53+
dotnet nuget push artifacts/package/release/*.nupkg \
54+
--api-key ${{ github.token }} \
55+
--source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json \
56+
--skip-duplicate \
57+
--no-symbols

.github/workflows/main.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"editor.rulers": [
77
120
88
],
9+
"files.autoSave": "onFocusChange",
10+
"files.autoSaveWhenNoErrors": true,
911
"files.eol": "\n",
1012
"files.trimTrailingWhitespace": true,
1113
"files.trimFinalNewlines": true,
@@ -14,5 +16,6 @@
1416
"**/artifacts": true
1517
},
1618
"git.rebaseWhenSync": true,
17-
"omnisharp.enableEditorConfigSupport": true
19+
"omnisharp.enableEditorConfigSupport": true,
20+
"omnisharp.enableRoslynAnalyzers": true
1821
}

.vscode/tasks.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4+
{
5+
"label": "clean",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"clean"
10+
],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
},
15+
"presentation": {
16+
"echo": false,
17+
"reveal": "always",
18+
"panel": "dedicated",
19+
"showReuseMessage": false,
20+
"clear": true
21+
},
22+
"options": {
23+
"statusbar": {
24+
"label": "$(trash) clean"
25+
}
26+
}
27+
},
428
{
529
"label": "dotnet build",
630
"type": "process",

Dark.IO.slnx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Solution>
2+
<Project Path="Dark.IO/Dark.IO.csproj" />
3+
</Solution>

Dark.IO.csproj renamed to Dark.IO/Dark.IO.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<LangVersion>12.0</LangVersion>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<LangVersion>13.0</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<PackageId>Dark.IO</PackageId>
@@ -16,7 +16,12 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<None Include="README.md" pack="true" PackagePath="." />
19+
<None Include="..\README.md" Pack="true" PackagePath="." />
2020
</ItemGroup>
2121

22+
<Target Name="PostClean" AfterTargets="Clean">
23+
<RemoveDir Directories="$(BaseOutputPath)" /><!-- bin -->
24+
<RemoveDir Directories="$(BaseIntermediateOutputPath)" /><!-- obj -->
25+
</Target>
26+
2227
</Project>
File renamed without changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dark.IO (Library)
2-
![Library](https://github.com/MarkusRodler/Dark.IO/workflows/.NET/badge.svg)
2+
![Library](https://github.com/MarkusRodler/Dark.IO/workflows/Library/badge.svg)
33

44
## How to use
55

0 commit comments

Comments
 (0)