Skip to content

Commit baedbd1

Browse files
committed
Updated build to use gitlink
1 parent c3f9867 commit baedbd1

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

build/common.props

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<Project ToolsVersion="15.0">
22
<Import Project="version.props" />
3-
3+
4+
<PropertyGroup Label="Source Link">
5+
<ProjectParentDirectory>$([System.IO.Path]::GetDirectoryName('$(MSBuildProjectDirectory)'))</ProjectParentDirectory>
6+
<ProjectParentDirectoryName>$([System.IO.Path]::GetFileName('$(ProjectParentDirectory)'))</ProjectParentDirectoryName>
7+
</PropertyGroup>
8+
9+
<Import Project="sourcelink.props" Condition="'$(ProjectParentDirectoryName)' == 'src'" />
10+
411
<PropertyGroup Label="Build">
512
<DebugType>portable</DebugType>
613
<NoWarn>$(NoWarn);CS1591</NoWarn>
@@ -25,8 +32,6 @@
2532
<Authors>Exceptionless</Authors>
2633
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2734
<PackageOutputPath>$(SolutionDir)artifacts</PackageOutputPath>
28-
<IncludeSymbols>True</IncludeSymbols>
29-
<IncludeSource>True</IncludeSource>
3035

3136
<PackageReleaseNotes>https://github.com/exceptionless/Exceptionless.Net/releases</PackageReleaseNotes>
3237
<PackageIconUrl>https://be.exceptionless.io/img/exceptionless-32.png</PackageIconUrl>

build/sourcelink.props

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project>
2+
<PropertyGroup>
3+
<DebugType>embedded</DebugType>
4+
</PropertyGroup>
5+
6+
<ItemGroup>
7+
<PackageReference Include="SourceLink.Create.GitHub" Version="2.1.2" PrivateAssets="all" />
8+
<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.1.2" />
9+
<DotNetCliToolReference Include="dotnet-sourcelink" Version="2.1.2" />
10+
</ItemGroup>
11+
</Project>

0 commit comments

Comments
 (0)