Skip to content

Commit 50f776f

Browse files
st0o0Dirnei
authored andcommitted
Adds global.json and updates build workflow
Adds a global.json file to specify the .NET SDK version and rollForward policy, ensuring consistent builds across different environments. Updates the build workflow to utilize the global.json file for .NET SDK installation, instead of relying on a fixed .NET version. Cleans up the .gitignore file by removing redundant and outdated entries, and adds entries for JetBrains Rider and JustCode. Additionally, the copyright notice is updated to include the current year.
1 parent efef12a commit 50f776f

10 files changed

Lines changed: 38 additions & 135 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [ "main" ]
77

88
env:
9-
DOTNET_VERSION: '8.0.x'
9+
GLOBAL_JSON_PATH: './src/global.json'
1010
PROJECT_PATH: './src/Servus.Akka.sln'
1111
PACKAGE_OUTPUT_DIRECTORY: './packages'
1212

@@ -28,7 +28,8 @@ jobs:
2828
- name: Install .NET Core
2929
uses: actions/setup-dotnet@v4
3030
with:
31-
dotnet-version: ${{ env.DOTNET_VERSION }}
31+
global-json-file: ${{ env.GLOBAL_JSON_PATH }}
32+
3233

3334
- name: Install GitVersion
3435
uses: gittools/actions/gitversion/setup@v1.1.1
@@ -90,8 +91,8 @@ jobs:
9091
- name: Setup .NET Core
9192
uses: actions/setup-dotnet@v4
9293
with:
93-
dotnet-version: ${{ env.DOTNET_VERSION }}
94-
94+
global-json-file: ${{ env.GLOBAL_JSON_PATH }}
95+
9596
- name: Publish to NuGet
9697
run: |
9798
dotnet nuget push --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate ${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg

.gitignore

Lines changed: 15 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33
##
4-
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
4+
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
55

66
# User-specific files
7-
*.rsuser
87
*.suo
98
*.user
109
*.userosscache
@@ -13,26 +12,17 @@
1312
# User-specific files (MonoDevelop/Xamarin Studio)
1413
*.userprefs
1514

16-
# Mono auto generated files
17-
mono_crash.*
18-
1915
# Build results
2016
[Dd]ebug/
2117
[Dd]ebugPublic/
2218
[Rr]elease/
2319
[Rr]eleases/
2420
x64/
2521
x86/
26-
[Ww][Ii][Nn]32/
27-
[Aa][Rr][Mm]/
28-
[Aa][Rr][Mm]64/
29-
[Aa][Rr][Mm]64[Ee][Cc]/
3022
bld/
3123
[Bb]in/
3224
[Oo]bj/
33-
[Oo]ut/
3425
[Ll]og/
35-
[Ll]ogs/
3626

3727
# Visual Studio 2015/2017 cache/options directory
3828
.vs/
@@ -46,10 +36,9 @@ Generated\ Files/
4636
[Tt]est[Rr]esult*/
4737
[Bb]uild[Ll]og.*
4838

49-
# NUnit
39+
# NUNIT
5040
*.VisualState.xml
5141
TestResult.xml
52-
nunit-*.xml
5342

5443
# Build Results of an ATL Project
5544
[Dd]ebugPS/
@@ -63,17 +52,15 @@ BenchmarkDotNet.Artifacts/
6352
project.lock.json
6453
project.fragment.lock.json
6554
artifacts/
66-
67-
# ASP.NET Scaffolding
68-
ScaffoldingReadMe.txt
55+
**/Properties/launchSettings.json
6956

7057
# StyleCop
7158
StyleCopReport.xml
7259

7360
# Files built by Visual Studio
7461
*_i.c
7562
*_p.c
76-
*_h.h
63+
*_i.h
7764
*.ilk
7865
*.meta
7966
*.obj
@@ -84,17 +71,13 @@ StyleCopReport.xml
8471
*.pgc
8572
*.pgd
8673
*.rsp
87-
# but not Directory.Build.rsp, as it configures directory-level build defaults
88-
!Directory.Build.rsp
8974
*.sbr
9075
*.tlb
9176
*.tli
9277
*.tlh
9378
*.tmp
9479
*.tmp_proj
95-
*_wpftmp.csproj
9680
*.log
97-
*.tlog
9881
*.vspscc
9982
*.vssscc
10083
.builds
@@ -136,6 +119,9 @@ _ReSharper*/
136119
*.[Rr]e[Ss]harper
137120
*.DotSettings.user
138121

122+
# JustCode is a .NET coding add-in
123+
.JustCode
124+
139125
# TeamCity is a build add-in
140126
_TeamCity*
141127

@@ -146,18 +132,12 @@ _TeamCity*
146132
.axoCover/*
147133
!.axoCover/settings.json
148134

149-
# Coverlet is a free, cross platform Code Coverage Tool
150-
coverage*.json
151-
coverage*.xml
152-
coverage*.info
153-
154135
# Visual Studio code coverage results
155136
*.coverage
156137
*.coveragexml
157138

158139
# NCrunch
159140
_NCrunch_*
160-
.NCrunch_*
161141
.*crunch*.local.xml
162142
nCrunchTemp_*
163143

@@ -199,8 +179,6 @@ PublishScripts/
199179

200180
# NuGet Packages
201181
*.nupkg
202-
# NuGet Symbol Packages
203-
*.snupkg
204182
# The packages folder can be ignored because of Package Restore
205183
**/[Pp]ackages/*
206184
# except build/, which is used as an MSBuild target.
@@ -225,14 +203,12 @@ BundleArtifacts/
225203
Package.StoreAssociation.xml
226204
_pkginfo.txt
227205
*.appx
228-
*.appxbundle
229-
*.appxupload
230206

231207
# Visual Studio cache files
232208
# files ending in .cache can be ignored
233209
*.[Cc]ache
234210
# but keep track of directories ending in .cache
235-
!?*.[Cc]ache/
211+
!*.[Cc]ache/
236212

237213
# Others
238214
ClientBin/
@@ -276,9 +252,6 @@ ServiceFabricBackup/
276252
*.bim.layout
277253
*.bim_*.settings
278254
*.rptproj.rsuser
279-
*- [Bb]ackup.rdl
280-
*- [Bb]ackup ([0-9]).rdl
281-
*- [Bb]ackup ([0-9][0-9]).rdl
282255

283256
# Microsoft Fakes
284257
FakesAssemblies/
@@ -299,17 +272,6 @@ node_modules/
299272
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
300273
*.vbw
301274

302-
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
303-
*.vbp
304-
305-
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
306-
*.dsw
307-
*.dsp
308-
309-
# Visual Studio 6 technical files
310-
*.ncb
311-
*.aps
312-
313275
# Visual Studio LightSwitch build output
314276
**/*.HTMLClient/GeneratedArtifacts
315277
**/*.DesktopClient/GeneratedArtifacts
@@ -325,8 +287,12 @@ paket-files/
325287
# FAKE - F# Make
326288
.fake/
327289

328-
# CodeRush personal settings
329-
.cr/personal
290+
# JetBrains Rider
291+
.idea/
292+
*.sln.iml
293+
294+
# CodeRush
295+
.cr/
330296

331297
# Python Tools for Visual Studio (PTVS)
332298
__pycache__/
@@ -357,50 +323,9 @@ ASALocalRun/
357323
# MSBuild Binary and Structured Log
358324
*.binlog
359325

360-
# AWS SAM Build and Temporary Artifacts folder
361-
.aws-sam
362-
363326
# NVidia Nsight GPU debugger configuration file
364327
*.nvuser
365328

366329
# MFractors (Xamarin productivity tool) working folder
367330
.mfractor/
368-
369-
# Local History for Visual Studio
370-
.localhistory/
371-
372-
# Visual Studio History (VSHistory) files
373-
.vshistory/
374-
375-
# BeatPulse healthcheck temp database
376-
healthchecksdb
377-
378-
# Backup folder for Package Reference Convert tool in Visual Studio 2017
379-
MigrationBackup/
380-
381-
# Ionide (cross platform F# VS Code tools) working folder
382-
.ionide/
383-
384-
# Fody - auto-generated XML schema
385-
FodyWeavers.xsd
386-
387-
# VS Code files for those working on multiple tools
388-
.vscode/*
389-
!.vscode/settings.json
390-
!.vscode/tasks.json
391-
!.vscode/launch.json
392-
!.vscode/extensions.json
393-
*.code-workspace
394-
395-
# Local History for Visual Studio Code
396-
.history/
397-
398-
# Windows Installer files from build outputs
399-
*.cab
400-
*.msi
401-
*.msix
402-
*.msm
403-
*.msp
404-
405-
# JetBrains Rider
406-
*.sln.iml
331+
.Rproj.user

src/.idea/.idea.Servus.Akka/.idea/.gitignore

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

src/.idea/.idea.Servus.Akka/.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/.idea/.idea.Servus.Akka/.idea/encodings.xml

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

src/.idea/.idea.Servus.Akka/.idea/indexLayout.xml

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

src/.idea/.idea.Servus.Akka/.idea/vcs.xml

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

src/Servus.Akka.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Servus.Akka", "Servus.Akka\
44
EndProject
55
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Servus.Akka.Tests", "Servus.Akka.Tests\Servus.Akka.Tests.csproj", "{D6A1F772-DF59-432E-B8CF-BFC037D2A14A}"
66
EndProject
7+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BFC5749C-9FA6-4A77-8A1B-A6FCF48C3A87}"
8+
ProjectSection(SolutionItems) = preProject
9+
..\README.md = ..\README.md
10+
..\LICENSE = ..\LICENSE
11+
..\.github\workflows\build-and-release.yml = ..\.github\workflows\build-and-release.yml
12+
EndProjectSection
13+
EndProject
714
Global
815
GlobalSection(SolutionConfigurationPlatforms) = preSolution
916
Debug|Any CPU = Debug|Any CPU

src/Servus.Akka/Servus.Akka.csproj

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!--<PackageProjectUrl>https://servusakka.readthedocs.io</PackageProjectUrl>-->
1010
<RepositoryUrl>https://github.com/Bavaria-Black/servus.akka</RepositoryUrl>
1111
<RepositoryType>git</RepositoryType>
12-
<Copyright>Copyright (c) Bavaria-Black 2025</Copyright>
12+
<Copyright>Copyright (c) Bavaria-Black 2025-$([System.DateTime]::Now.Year)</Copyright>
1313
</PropertyGroup>
1414

1515
<PropertyGroup>
@@ -25,10 +25,9 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<None Include="../../README.md" Pack="true" PackagePath="\"/>
29-
<None Include="../../logo.png" Pack="true" PackagePath=""/>
30-
<None Include="../../LICENSE" Pack="true" PackagePath="\"/>
31-
<None Include="../../.github/workflows/build-and-release.yml" />
28+
<None Include="../../README.md" Visible="false" Pack="true" PackagePath="\"/>
29+
<None Include="../../logo.png" Visible="false" Pack="true" PackagePath=""/>
30+
<None Include="../../LICENSE" Visible="false" Pack="true" PackagePath="\"/>
3231
</ItemGroup>
3332

3433
<Target Name="ServusLogo" BeforeTargets="Build">
@@ -45,8 +44,4 @@
4544
<Message Text=" " Importance="high" />
4645
<Message Text=" " Importance="high" />
4746
</Target>
48-
49-
<ItemGroup>
50-
<Folder Include="Actor\" />
51-
</ItemGroup>
5247
</Project>

src/global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "10.0.100",
4+
"rollForward": "latestFeature",
5+
"allowPrerelease": false
6+
}
7+
}

0 commit comments

Comments
 (0)