Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

Commit 376ec1e

Browse files
mivanomikkelbumariwingMarius Wingereiandrey-kozlov-skuvault
authored
Create v9.0.0 (#509)
* Create codeql-analysis.yml (#370) * fix: Correct comment about default TypeName (#393) The default TypeName was changed to '_doc' in #298 * Proper handling of TypeName = null from appsettings.json (#420) Co-authored-by: Marius Wingerei <[email protected]> * Add `ElasticsearchSinkOptions.BufferFileRollingInterval` option (#416) * Add `ElasticsearchSinkOptions.BufferFileRollingInterval` option - Using this option we can customize buffer file rolling interval. The default is `RollingInterval.Day` (so no changes here). In some cases higher granularity may be needed. - Changed regular expression for FileSet to get buffer files to support different rolling interval file name formats - from Infinite to Minute. All of them are different amount of digits representing date - 0(Infinite), 4(Year),..., 12 (Minute). So replaced expression part for day format `(?<date>\\d{8})` with the expression for all interval date `(?<date>\\d{0,12})`. * Add tests for the desired functionality, which fail now. - Return code to support only Daily rolling interval - Add RollingIntervalExtensions.cs (origin: Serilog.Sinks.File) with InternalVisible attribute to be able to test - Add InternalVisible to FileSet.cs to be able to test it - Sign tests assembly the same way as Serilog.Sinks.Elasticsearch for InternalVisible to work * Support different rolling intervals for DurableElasticsearchSink rolling files. - Make support only for intervals like Day, Hour, Minute. As for less frequent intervals we cannot get specific date (specific day) for passing to _getIndexForEvent in `ElasticsearchPayloadReader`. - Support handling rolling files for different intervals in `ElasticsearchPayloadReader` and `FileSet` by using corresponding formats and search patterns. - Add tests of changed code - for `ElasticsearchPayloadReader` and `FileSet` * Remove redundant spaces * Fix internal or IntelliSense typos (#406) Cleaning up a few very minor typos in internal methods or exposed via IntelliSense: * "semi column" -> "semi-colon" * "preforming" -> "performing" * "CreatePlayLoad" -> "CreatePayload" Co-authored-by: Bo Flynn <[email protected]> * Clean package sources * clean obsolete .net versions * updated packages * added dependabot * Bump actions/setup-dotnet from 1 to 2 (#431) Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 1 to 2. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](actions/setup-dotnet@v1...v2) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 2 to 3 (#427) Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/cache from 2 to 3 (#429) Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v2...v3) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/download-artifact from 2 to 3 (#424) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v2...v3) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * added dependencies * copy local files * updating versions * publish test results * remove old nuspec and updated icons * added icon * updates * fix build * multiple packages * name * cicd * skip test for now as it is flaky * version * Names * use correct folder * older version * diffferent way of pushing * enviroment * Remove app veyor and dotnet-version * Use repo owner * use dotnet nuget * logging * remove @ * --skip-duplicate * update project url * Updated changelog * paths * use correct output path * remove the source * skip duplicates * Bump actions/setup-dotnet from 2 to 3.0.2 (#478) Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 2 to 3.0.2. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](actions/setup-dotnet@v2...v3.0.2) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update cicd.yaml * Bump actions/download-artifact from 1 to 3 (#439) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 1 to 3. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v1...v3) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/upload-artifact from 2 to 3 (#438) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update cicd.yaml * fix file references in the Visual Studio Solution file. (#461) Co-authored-by: Nenad Vicentic <[email protected]> * Bump actions/setup-dotnet from 3.0.2 to 3.0.3 (#487) Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3.0.2 to 3.0.3. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](actions/setup-dotnet@v3.0.2...v3.0.3) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump github/codeql-action from 1 to 2 (#426) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@v1...v2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Automatically handle `TypeName` parameter for different versions of Elasticsearch (<7, 7 or higher) (#462) * fix file references in the Visual Studio Solution file. * Do not set `TypeName` by default any more. * last version of Elasticsearch that supported user-defined `_type` field - v6.8.x is running out of support on 2022-02-10 (https://www.elastic.co/support/eol) * Automatically handle `ElasticsearchSinkOptions.TypeName` for different versions Elasticsearch (<7, 7+) when `ElasticsearchSinkOptions.DetectElasticsearchVersion` is enabled. * Add unit test for automatic settings of `TypeName` when `DetectElasticsearchVersion` is set to `true`. - Two methods used - instantiate `ElasticsearchSinkState` directly and via `LoggerConfiguration` * Add Elasticsearch v8 template + parsing of Elasticsearch major version to `int` + decision branch for which version of index-template API to use + removal of obsolete `ElasticsearchTemplateProvider.GetTemplate(...)` method overload. * Upgrade to .NET 6.0 and update test-frameworks related NuGet pacakges * Upgrade to Elasticsearch.NET 7.17.5 + handle new "preflight" request https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-to-an-unsuccessful-product-check-call-some-functionality-may-not-be-compatible-if-the-server-is-running-an-unsupported-product/310969/9 "The 7.16 client performs a pre-flight GET request to the root URL of the server before the first request.". * Make `ConnectionStub` a bit more robust . * Use `System.Version` to parse Elasticsearch server version number (similar to what `Elasticsearch.Net` does) * Update NuGet packages * Replace obsolete NuGet package `Serilog.Sinks.ColoredConsole` with `Serilog.Sinks.Console` * Update `Serilog.Sinks.PeriodicBatching` package and reimplent `ElasticsearchSink` so that it does not use obsolete `PeriodicBatchingSink` constructor. * Better handling of Elasticsearch server version number in mocked `ConnectionStub` * Cleanup: refactor to use single `JsonEquals` method. * Turn on `DetectElasticSearchVersion` option by default. Assume version 7 on fallback. * Cleanup: remove unused namespaces * Cleanup: move `ElasticsearchSinkTestsBase` into `Stubs` subfolder. * Refactor: extract `ConnectionStub` into a separate file. * Fix: json comparison in .NET Framework 4.6+ * Run unit-tests on multiple .NET frameworks. * Cleanup: remove unused NUnit runner package. * Use newer, built-in compilation constants. https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives#conditional-compilation * Use standard MSBuild property `IsPackable` for clarity. * Cleanup: remove unused package refrence. * Update GitHub actions * docs: updated documentation to reflect changes in behavior of the sink. Co-authored-by: Nenad Vicentic <[email protected]> * Update dotnet sdk * disable net48 tests * set api key * Remove support for Elasticsearch v2 and v5. (#488) * Remove support for Elasticsearch v2 and v5. * Code-conventions: add rule for underscore `_` on private fields (as it already is in the code). * Remove GitHub's `set-output` command deprication warning. Co-authored-by: Nenad Vicentic <[email protected]> * added path for tests * fix: Example in README is incorrect #402 (#496) * Applying right versioning * Update AssemblyInfo.cs * Remove `AssemblyInfo.cs` and move attributes to the `*.csproj` file. This enables setting assembly version via command line and CI. (#501) 1. Build and pack: dotnet build -c Release -p:Version=9.0.0-beta11 dotnet pack -c Release --no-build -p:Version=9.0.0-beta11 2. Pack (with implicit build) dotnet pack -c Release -p:Version=9.0.0-beta11 Co-authored-by: Nenad Vicentic <[email protected]> * Read Elasticsearch server version from a root page response (#502) Co-authored-by: Nenad Vicentic <[email protected]> * Versioning and permission for unit tests * [no ci] * #498 Disable `PublicSign` to fix strong-name signature verification issue of assemblies from public NuGet package: (#504) > Could not load file or assembly 'Serilog.Formatting.Elasticsearch' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)" Co-authored-by: Nenad Vicentic <[email protected]> * [no ci] --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Mikkel Nylander Bundgaard <[email protected]> Co-authored-by: mariwing <[email protected]> Co-authored-by: Marius Wingerei <[email protected]> Co-authored-by: Andrey Kozlov <[email protected]> Co-authored-by: Bo Flynn <[email protected]> Co-authored-by: Bo Flynn <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nenad Vićentić <[email protected]> Co-authored-by: Nenad Vicentic <[email protected]>
1 parent 7825f68 commit 376ec1e

File tree

86 files changed

+1690
-1232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1690
-1232
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,19 @@ indent_size = 4
66

77
[*.csproj]
88
indent_size = 2
9+
10+
# Code files
11+
[*.{cs,csx,vb,vbx}]
12+
###############################
13+
# Naming Conventions #
14+
###############################
15+
# Underscore for private fields
16+
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
17+
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
18+
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
19+
20+
dotnet_naming_symbols.private_fields.applicable_kinds = field
21+
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
22+
23+
dotnet_naming_style.prefix_underscore.capitalization = camel_case
24+
dotnet_naming_style.prefix_underscore.required_prefix = _

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget"
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"
12+
13+
- package-ecosystem: "github-actions"
14+
directory: "/" # Location of package manifests
15+
schedule:
16+
interval: "daily"

.github/workflows/cicd.yaml

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
pull_request:
6+
release:
7+
types:
8+
- published
9+
env:
10+
Configuration: Release
11+
ContinuousIntegrationBuild: true
12+
DOTNET_CLI_TELEMETRY_OPTOUT: true
13+
DOTNET_NOLOGO: true
14+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
15+
16+
# GitHub Packages Feed settings
17+
GITHUB_FEED: https://nuget.pkg.github.com/serilog-contrib/
18+
GITHUB_USER: mivano
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
jobs:
22+
package:
23+
runs-on: ubuntu-latest
24+
name: Run tests and create NuGet package
25+
outputs:
26+
coverage-reports: ${{ steps.dotnet-test.outputs.coverage-reports }}
27+
version: ${{ steps.dotnet-pack.outputs.version }}
28+
nupkg-filename: ${{ steps.dotnet-pack.outputs.nupkg-filename }}
29+
release-body: ${{ steps.tag-message.outputs.release-notes }}
30+
steps:
31+
- name: Checkout git repository
32+
uses: actions/checkout@v3
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Install .NET SDK
37+
uses: actions/[email protected]
38+
with:
39+
dotnet-version: '7.0.x'
40+
41+
- name: Retrieve cached NuGet packages
42+
uses: actions/cache@v3
43+
with:
44+
path: ~/.nuget/packages
45+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
46+
47+
- name: Restore NuGet packages
48+
run: dotnet restore
49+
50+
- name: Build solution
51+
run: dotnet build --no-restore -c Release
52+
53+
- name: Run tests
54+
run: dotnet test --no-build -c Release --logger "html;LogFileName=TestResults-${{ runner.os }}.html" --logger "trx;LogFileName=TestResults-${{ runner.os }}.trx" --logger GitHubActions
55+
id: dotnet-test
56+
57+
- name: Upload received files from failing tests
58+
uses: actions/upload-artifact@v3
59+
if: failure()
60+
with:
61+
name: Received-${{ runner.os }}
62+
path: "**/*.received.*"
63+
64+
- name: Upload test results
65+
uses: actions/upload-artifact@v3
66+
if: always()
67+
with:
68+
name: TestResults-${{ runner.os }}
69+
path: test/Serilog.Sinks.Elasticsearch.Tests/TestResults/TestResults-${{ runner.os }}.html
70+
71+
- name: Test Report
72+
uses: dorny/test-reporter@v1
73+
if: always()
74+
with:
75+
name: Test Results (${{ runner.os }})
76+
path: '**.trx'
77+
reporter: dotnet-trx
78+
79+
- name: Create NuGet packages
80+
run: dotnet pack --no-build -c Release --version-suffix "ci-$GITHUB_RUN_ID" --include-symbols --include-source --output .
81+
id: dotnet-pack
82+
83+
- name: Upload NuGet package artifact
84+
uses: actions/upload-artifact@v3
85+
with:
86+
name: nuget
87+
path: '**/*.nupkg'
88+
89+
prerelease:
90+
needs: package
91+
name: Create prerelease
92+
if: github.ref == 'refs/heads/dev'
93+
runs-on: ubuntu-latest
94+
steps:
95+
- name: Download Artifact
96+
uses: actions/download-artifact@v3
97+
with:
98+
name: nuget
99+
path: nuget
100+
- name: Push to GitHub Feed
101+
run: |
102+
dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/serilog-contrib/index.json"
103+
104+
for f in ./nuget/*.nupkg
105+
do
106+
echo $f
107+
dotnet nuget push $f --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
108+
done
109+
110+
publish:
111+
runs-on: ubuntu-latest
112+
needs: package
113+
if: github.event_name == 'release'
114+
name: Publish NuGet package
115+
steps:
116+
- name: Checkout git repository
117+
uses: actions/checkout@v3
118+
with:
119+
fetch-depth: 0
120+
121+
- name: Install .NET SDK
122+
uses: actions/[email protected]
123+
124+
- name: Retrieve cached NuGet packages
125+
uses: actions/cache@v3
126+
with:
127+
path: ~/.nuget/packages
128+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
129+
130+
- name: Restore NuGet packages
131+
run: dotnet restore
132+
133+
- name: Create Release NuGet package
134+
run: |
135+
arrTag=(${GITHUB_REF//\// })
136+
VERSION="${arrTag[2]}"
137+
VERSION="${VERSION//v}"
138+
dotnet pack -v normal -c Release --include-symbols --include-source -p:Version=$VERSION -o ./nuget
139+
140+
- name: Push to GitHub Feed
141+
run: |
142+
dotnet nuget add source --username $GITHUB_USER --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/serilog-contrib/index.json"
143+
144+
for f in ./nuget/*.nupkg
145+
do
146+
dotnet nuget push $f --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
147+
done
148+
149+
- name: Publish NuGet package on nuget.org
150+
run: dotnet nuget push ./nuget/*.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --skip-duplicate

.github/workflows/codeql-analysis.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
# ******** NOTE ********
12+
13+
name: "CodeQL"
14+
15+
on:
16+
push:
17+
branches: [ dev, master ]
18+
pull_request:
19+
# The branches below must be a subset of the branches above
20+
branches: [ dev ]
21+
schedule:
22+
- cron: '27 7 * * 6'
23+
24+
jobs:
25+
analyze:
26+
name: Analyze
27+
runs-on: ubuntu-latest
28+
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
language: [ 'csharp' ]
33+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
34+
# Learn more...
35+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
36+
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v3
40+
41+
- name: Setup dotnet
42+
uses: actions/[email protected]
43+
with:
44+
dotnet-version: '6.0.x'
45+
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@v2
49+
with:
50+
languages: ${{ matrix.language }}
51+
# If you wish to specify custom queries, you can do so here or in a config file.
52+
# By default, queries listed here will override any specified in a config file.
53+
# Prefix the list here with "+" to use these queries and those in the config file.
54+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 https://git.io/JvXDl
63+
64+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
65+
# and modify them (or add more) to build your code if your project
66+
# uses a compiled language
67+
68+
#- run: |
69+
# make bootstrap
70+
# make release
71+
72+
- name: Perform CodeQL Analysis
73+
uses: github/codeql-action/analyze@v2

.vscode/tasks.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
{
2-
"version": "0.1.0",
2+
"version": "2.0.0",
33
"command": "dotnet",
4-
"isShellCommand": true,
54
"args": [],
65
"tasks": [
76
{
8-
"taskName": "build",
7+
"label": "build",
8+
"type": "shell",
9+
"command": "dotnet",
910
"args": [
11+
"build",
1012
"${workspaceRoot}/sample/Serilog.Sinks.Elasticsearch.Sample/Serilog.Sinks.Elasticsearch.Sample.csproj"
1113
],
12-
"isBuildCommand": true,
13-
"problemMatcher": "$msCompile"
14+
"problemMatcher": "$msCompile",
15+
"group": {
16+
"_id": "build",
17+
"isDefault": false
18+
}
1419
}
1520
]
1621
}

.vscode/tasks.json.old

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.1.0",
3+
"command": "dotnet",
4+
"isShellCommand": true,
5+
"args": [],
6+
"tasks": [
7+
{
8+
"taskName": "build",
9+
"args": [
10+
"${workspaceRoot}/sample/Serilog.Sinks.Elasticsearch.Sample/Serilog.Sinks.Elasticsearch.Sample.csproj"
11+
],
12+
"isBuildCommand": true,
13+
"problemMatcher": "$msCompile"
14+
}
15+
]
16+
}

Build.ps1

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

0 commit comments

Comments
 (0)