Skip to content

Commit

Permalink
Fix SourceLink failures (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Osenkov <[email protected]>
  • Loading branch information
atifaziz and KirillOsenkov authored Apr 8, 2020
1 parent 2ca0a2c commit 2351c3c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"sourcelink": {
"version": "3.1.1",
"commands": [
"sourcelink"
]
}
}
}
9 changes: 9 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project>
<PropertyGroup>
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)', '$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
</PropertyGroup>
<ItemGroup>
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
<EmbeddedFiles Include="$(TargetFrameworkMonikerAssemblyAttributesPath)"/>
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/Fizzler.Systems.HtmlAgilityPack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@
<ItemGroup>
<None Include="..\COPYING.txt" Pack="true" PackagePath="$(PackageLicenseFile)" />
</ItemGroup>
<PropertyGroup>
<EmbedUntrackedSource>true</EmbedUntrackedSource>
</PropertyGroup>
</Project>

0 comments on commit 2351c3c

Please sign in to comment.