From 2351c3c9cdd19b617de4fe7532b6580d225a87af Mon Sep 17 00:00:00 2001 From: Atif Aziz Date: Wed, 8 Apr 2020 21:29:27 +0200 Subject: [PATCH] Fix SourceLink failures (#13) Co-authored-by: Kirill Osenkov --- .config/dotnet-tools.json | 12 ++++++++++++ Directory.Build.targets | 9 +++++++++ appveyor.yml | 2 ++ src/Fizzler.Systems.HtmlAgilityPack.csproj | 3 +++ 4 files changed, 26 insertions(+) create mode 100644 .config/dotnet-tools.json create mode 100644 Directory.Build.targets diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..5e9a36e --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "sourcelink": { + "version": "3.1.1", + "commands": [ + "sourcelink" + ] + } + } +} \ No newline at end of file diff --git a/Directory.Build.targets b/Directory.Build.targets new file mode 100644 index 0000000..8a563f2 --- /dev/null +++ b/Directory.Build.targets @@ -0,0 +1,9 @@ + + + $([System.IO.Path]::Combine('$(IntermediateOutputPath)', '$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)')) + + + + + + diff --git a/appveyor.yml b/appveyor.yml index 819e6c1..0b5c261 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -27,10 +27,12 @@ install: - sh: export PATH="$HOME/.dotnet:$PATH" before_build: - dotnet --info +- dotnet tool restore build_script: - ps: |- $id = ([datetimeoffset]$env:APPVEYOR_REPO_COMMIT_TIMESTAMP).ToUniversalTime().ToString('yyyyMMdd''t''HHmm') if ($isWindows) { .\pack.cmd ci-$id } else { ./pack.sh ci-$id } + dotnet sourcelink test "$(dir dist\*.symbols.nupkg)" test_script: - cmd: test.cmd - sh: ./test.sh diff --git a/src/Fizzler.Systems.HtmlAgilityPack.csproj b/src/Fizzler.Systems.HtmlAgilityPack.csproj index b9c5f4c..62dfd1f 100644 --- a/src/Fizzler.Systems.HtmlAgilityPack.csproj +++ b/src/Fizzler.Systems.HtmlAgilityPack.csproj @@ -31,4 +31,7 @@ + + true +