Skip to content

Commit

Permalink
Microsoft.SourceLink.GitHub (#45)
Browse files Browse the repository at this point in the history
* Microsoft.SourceLink.GitHub

- Switch to the new "official" SourceLink package for projects hosted on GitHub: `Microsoft.SourceLink.GitHub`.

https://github.com/dotnet/sourcelink

https://www.hanselman.com/blog/ExploringNETCoresSourceLinkSteppingIntoTheSourceCodeOfNuGetPackagesYouDontOwn.aspx

- SourceLink settings: https://github.com/dotnet/sourcelink#using-sourcelink

- Disable SourceLink when building on Travis-CI, to work around bug in SourceLink.

dotnet/sourcelink#119

linq2db/linq2db#1256 (comment)

travis-ci/travis-ci#9877

* Missing quotes for EnableSourceLink condition test?

* Don't set SourceLink generator properties on Travis.

* Bump package version to 1.1.11
  • Loading branch information
jthelin authored Oct 2, 2018
1 parent 78b5a93 commit fa47c11
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions ServerHost/ServerHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.1.10</Version>
<Version>1.1.11</Version>
<Authors>Jorgen Thelin</Authors>
<Copyright>Copyright © Jorgen Thelin 2015-2018</Copyright>
<Description>ServerHost - A .NET Server Hosting utility library, including in-process server host testing.</Description>
Expand All @@ -23,12 +23,32 @@
<RepositoryUrl>https://github.com/jthelin/ServerHost.git</RepositoryUrl>
</PropertyGroup>

<PropertyGroup Condition="'$(TRAVIS)' == 'true'" >
<!-- Disable SourceLink when running Travis-CI build, due to bug. -->
<!-- https://github.com/dotnet/sourcelink/issues/119 -->
<EnableSourceLink>false</EnableSourceLink>
</PropertyGroup>

<PropertyGroup Condition="'$(TRAVIS)' != 'true'" >

<!-- SourceLink settings: https://github.com/dotnet/sourcelink#using-sourcelink -->

<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Optional: Include the PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="log4net">
<Version>2.0.5</Version>
</PackageReference>
<PackageReference Include="SourceLink.Create.CommandLine">
<Version>2.8.3</Version>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<Version>1.0.0-beta-63127-02</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit fa47c11

Please sign in to comment.