Skip to content

Commit 9903036

Browse files
author
Ruslan Shupoval
committed
add SourceLink support
1 parent 543d861 commit 9903036

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ insert_final_newline = true
66
indent_style = space
77
indent_size = 4
88

9-
[*.{csproj,json,config,yml}]
9+
[*.{csproj,json,config,yml,props}]
1010
indent_size = 2
1111

1212
[*.sh]

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matrix:
55
- os: linux
66
dist: trusty
77
sudo: required
8-
dotnet: 2.0.0
8+
dotnet: 2.1.300
99
group: edge
1010
script:
1111
- ./build.sh

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ foreach ($src in ls src/*) {
2525

2626
& dotnet build -c Release --version-suffix=$buildSuffix
2727
if ($suffix) {
28-
& dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix --no-build
28+
& dotnet pack -c Release -o ..\..\artifacts --version-suffix=$suffix --no-build
2929
} else {
30-
& dotnet pack -c Release --include-source -o ..\..\artifacts --no-build
30+
& dotnet pack -c Release -o ..\..\artifacts --no-build
3131
}
3232
if($LASTEXITCODE -ne 0) { exit 1 }
3333

Directory.Build.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project>
2+
<PropertyGroup>
3+
<!-- SourceLink configuration -->
4+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
5+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
6+
</PropertyGroup>
7+
<ItemGroup>
8+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All"/>
9+
</ItemGroup>
10+
</Project>

serilog-sinks-file.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{E9D1B5
1212
appveyor.yml = appveyor.yml
1313
Build.ps1 = Build.ps1
1414
build.sh = build.sh
15+
Directory.Build.props = Directory.Build.props
1516
NuGet.Config = NuGet.Config
1617
README.md = README.md
1718
assets\Serilog.snk = assets\Serilog.snk

src/Serilog.Sinks.File/Serilog.Sinks.File.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<Description>Write Serilog events to text files in plain or JSON format.</Description>

0 commit comments

Comments
 (0)