Skip to content

Commit 2ea9bfd

Browse files
committed
add net 10 support
1 parent 6eda706 commit 2ea9bfd

File tree

16 files changed

+192
-30
lines changed

16 files changed

+192
-30
lines changed

.github/workflows/ci-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
- name: Setup
2323
uses: actions/setup-dotnet@v5
2424
with:
25-
dotnet-version: 9.0.x
25+
dotnet-version: |
26+
9.0.x
27+
10.0.x
2628
- name: Build and Publish
2729
env:
2830
DOTNET_CLI_TELEMETRY_OPTOUT: true

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
- name: Setup
2424
uses: actions/setup-dotnet@v5
2525
with:
26-
dotnet-version: 9.0.x
26+
dotnet-version: |
27+
9.0.x
28+
10.0.x
2729
- name: Build and Publish
2830
env:
2931
DOTNET_CLI_TELEMETRY_OPTOUT: true

.github/workflows/code-coverage.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@ jobs:
2222
- name: Setup .NET
2323
uses: actions/setup-dotnet@v5
2424
with:
25-
dotnet-version: 9.0.x
25+
dotnet-version: |
26+
9.0.x
27+
10.0.x
2628
2729
- name: Restore Dependencies
28-
run: dotnet restore serilog-sinks-splunk.sln
30+
run: dotnet restore serilog-sinks-splunk.slnx
2931

3032
- name: Build
31-
run: dotnet build serilog-sinks-splunk.sln --configuration Release --no-restore
33+
run: dotnet build serilog-sinks-splunk.slnx --configuration Release --no-restore
3234

3335
- name: Test
34-
run: dotnet test serilog-sinks-splunk.sln --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
36+
run: dotnet test serilog-sinks-splunk.slnx --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
3537

3638
- name: Code Coverage Report
3739
uses: irongut/CodeCoverageSummary@v1.3.0

.serena/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/cache

.serena/project.yml

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# the name by which the project can be referenced within Serena
2+
project_name: "serilog-sinks-splunk"
3+
4+
5+
# list of languages for which language servers are started; choose from:
6+
# al bash clojure cpp csharp
7+
# csharp_omnisharp dart elixir elm erlang
8+
# fortran fsharp go groovy haskell
9+
# java julia kotlin lua markdown
10+
# matlab nix pascal perl php
11+
# php_phpactor powershell python python_jedi r
12+
# rego ruby ruby_solargraph rust scala
13+
# swift terraform toml typescript typescript_vts
14+
# vue yaml zig
15+
# (This list may be outdated. For the current list, see values of Language enum here:
16+
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py
17+
# For some languages, there are alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
18+
# Note:
19+
# - For C, use cpp
20+
# - For JavaScript, use typescript
21+
# - For Free Pascal/Lazarus, use pascal
22+
# Special requirements:
23+
# Some languages require additional setup/installations.
24+
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
25+
# When using multiple languages, the first language server that supports a given file will be used for that file.
26+
# The first language is the default language and the respective language server will be used as a fallback.
27+
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
28+
languages:
29+
- csharp
30+
31+
# the encoding used by text files in the project
32+
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
33+
encoding: "utf-8"
34+
35+
# The language backend to use for this project.
36+
# If not set, the global setting from serena_config.yml is used.
37+
# Valid values: LSP, JetBrains
38+
# Note: the backend is fixed at startup. If a project with a different backend
39+
# is activated post-init, an error will be returned.
40+
language_backend:
41+
42+
# whether to use project's .gitignore files to ignore files
43+
ignore_all_files_in_gitignore: true
44+
45+
# list of additional paths to ignore in this project.
46+
# Same syntax as gitignore, so you can use * and **.
47+
# Note: global ignored_paths from serena_config.yml are also applied additively.
48+
ignored_paths: []
49+
50+
# whether the project is in read-only mode
51+
# If set to true, all editing tools will be disabled and attempts to use them will result in an error
52+
# Added on 2025-04-18
53+
read_only: false
54+
55+
# list of tool names to exclude. We recommend not excluding any tools, see the readme for more details.
56+
# Below is the complete list of tools for convenience.
57+
# To make sure you have the latest list of tools, and to view their descriptions,
58+
# execute `uv run scripts/print_tool_overview.py`.
59+
#
60+
# * `activate_project`: Activates a project by name.
61+
# * `check_onboarding_performed`: Checks whether project onboarding was already performed.
62+
# * `create_text_file`: Creates/overwrites a file in the project directory.
63+
# * `delete_lines`: Deletes a range of lines within a file.
64+
# * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
65+
# * `execute_shell_command`: Executes a shell command.
66+
# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
67+
# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
68+
# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
69+
# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
70+
# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
71+
# * `initial_instructions`: Gets the initial instructions for the current project.
72+
# Should only be used in settings where the system prompt cannot be set,
73+
# e.g. in clients you have no control over, like Claude Desktop.
74+
# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
75+
# * `insert_at_line`: Inserts content at a given line in a file.
76+
# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
77+
# * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
78+
# * `list_memories`: Lists memories in Serena's project-specific memory store.
79+
# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
80+
# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
81+
# * `read_file`: Reads a file within the project directory.
82+
# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
83+
# * `remove_project`: Removes a project from the Serena configuration.
84+
# * `replace_lines`: Replaces a range of lines within a file with new content.
85+
# * `replace_symbol_body`: Replaces the full definition of a symbol.
86+
# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
87+
# * `search_for_pattern`: Performs a search for a pattern in the project.
88+
# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
89+
# * `switch_modes`: Activates modes by providing a list of their names
90+
# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
91+
# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
92+
# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
93+
# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
94+
excluded_tools: []
95+
96+
# list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default)
97+
included_optional_tools: []
98+
99+
# fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
100+
# This cannot be combined with non-empty excluded_tools or included_optional_tools.
101+
fixed_tools: []
102+
103+
# list of mode names to that are always to be included in the set of active modes
104+
# The full set of modes to be activated is base_modes + default_modes.
105+
# If the setting is undefined, the base_modes from the global configuration (serena_config.yml) apply.
106+
# Otherwise, this setting overrides the global configuration.
107+
# Set this to [] to disable base modes for this project.
108+
# Set this to a list of mode names to always include the respective modes for this project.
109+
base_modes:
110+
111+
# list of mode names that are to be activated by default.
112+
# The full set of modes to be activated is base_modes + default_modes.
113+
# If the setting is undefined, the default_modes from the global configuration (serena_config.yml) apply.
114+
# Otherwise, this overrides the setting from the global configuration (serena_config.yml).
115+
# This setting can, in turn, be overridden by CLI parameters (--mode).
116+
default_modes:
117+
118+
# initial prompt for the project. It will always be given to the LLM upon activating the project
119+
# (contrary to the memories, which are loaded on demand).
120+
initial_prompt: ""
121+
122+
# time budget (seconds) per tool call for the retrieval of additional symbol information
123+
# such as docstrings or parameter information.
124+
# This overrides the corresponding setting in the global configuration; see the documentation there.
125+
# If null or missing, use the setting from the global configuration.
126+
symbol_info_budget:

Build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if(Test-Path .\artifacts) {
1212
Remove-Item ./artifacts -Force -Recurse
1313
}
1414

15-
& dotnet restore .\serilog-sinks-splunk.sln --no-cache
15+
& dotnet restore .\serilog-sinks-splunk.slnx --no-cache
1616

1717
$branch = $NULL -ne $env:CI_TARGET_BRANCH ? $env:CI_TARGET_BRANCH : (git symbolic-ref --short -q HEAD)
1818
$revision = $NULL -ne $env:CI_BUILD_NUMBER ? "{0:00000}" -f [Convert]::ToInt32("0" + $env:CI_BUILD_NUMBER, 10) : "local"
@@ -21,7 +21,7 @@ $revision = $NULL -ne $env:CI_BUILD_NUMBER ? "{0:00000}" -f [Convert]::ToInt32("
2121
$suffix = $NULL -ne $env:CI_COMMIT_TAG ? "" : "$($branch.Substring(0, [Math]::Min(10,$branch.Length)) -replace '([^a-zA-Z0-9\-]*)', '')-$revision"
2222
$prefix = $env:CI_COMMIT_TAG
2323

24-
Write-Output "build: Branch: $brach"
24+
Write-Output "build: Branch: $branch"
2525
Write-Output "build: Revision: $revision"
2626
Write-Output "build: VersionPrefix: $prefix"
2727
Write-Output "build: VersionSuffix: $suffix"
@@ -47,7 +47,7 @@ foreach ($src in Get-ChildItem src/* -Directory) {
4747
}
4848

4949
Write-Output "build: Checking complete solution builds"
50-
& dotnet build .\serilog-sinks-splunk.sln -c Release
50+
& dotnet build .\serilog-sinks-splunk.slnx -c Release
5151
if($LASTEXITCODE -ne 0) { throw "Solution build failed" }
5252

5353

Create-DockerfileSolutionRestore.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
param (
2-
[string]$solution = "serilog-sinks-splunk.sln"
2+
[string]$solution = "serilog-sinks-splunk.slnx"
33
)
44

55
$outfile = "DockerfileSolutionRestore.txt"

DockerfileSolutionRestore.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY ["src/Serilog.Sinks.UDP/Serilog.Sinks.Splunk.UDP.csproj", "src/Serilog.Sink
77
COPY ["test/Serilog.Sinks.Splunk.TCP.Tests/Serilog.Sinks.Splunk.TCP.Tests.csproj", "test/Serilog.Sinks.Splunk.TCP.Tests/"]
88
COPY ["test/Serilog.Sinks.Splunk.Tests/Serilog.Sinks.Splunk.Tests.csproj", "test/Serilog.Sinks.Splunk.Tests/"]
99
COPY ["docker-compose.dcproj", "./"]
10-
COPY ["serilog-sinks-splunk.sln", "./"]
11-
RUN dotnet restore "serilog-sinks-splunk.sln"
10+
COPY ["serilog-sinks-splunk.slnx", "./"]
11+
RUN dotnet restore "serilog-sinks-splunk.slnx"
1212

1313
# Docker Compose Paths

Setup.ps1

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

sample/Sample/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ COPY ["src/Serilog.Sinks.UDP/Serilog.Sinks.Splunk.UDP.csproj", "src/Serilog.Sink
1515
COPY ["test/Serilog.Sinks.Splunk.TCP.Tests/Serilog.Sinks.Splunk.TCP.Tests.csproj", "test/Serilog.Sinks.Splunk.TCP.Tests/"]
1616
COPY ["test/Serilog.Sinks.Splunk.Tests/Serilog.Sinks.Splunk.Tests.csproj", "test/Serilog.Sinks.Splunk.Tests/"]
1717
COPY ["docker-compose.dcproj", "./"]
18-
COPY ["serilog-sinks-splunk.sln", "./"]
19-
RUN dotnet restore "serilog-sinks-splunk.sln"
18+
COPY ["serilog-sinks-splunk.slnx", "./"]
19+
RUN dotnet restore "serilog-sinks-splunk.slnx"
2020

2121
COPY . .
2222
WORKDIR "/src/sample/Sample/"

0 commit comments

Comments
 (0)