Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 3644606

Browse files
committed
Add support for sourcelink
1 parent f555dad commit 3644606

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Source/Directory.build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
<UseCommonOutputDirectory>true</UseCommonOutputDirectory>
3838
<OutputPath>$(MSBuildThisFileDirectory)..\Bin\$(Configuration)\</OutputPath>
3939
<DocumentationFile Condition="'$(Configuration)' == 'Release'">$(MSBuildThisFileDirectory)..\Bin\$(Configuration)\$(TargetFramework)\$(PackageId).xml</DocumentationFile>
40+
41+
<!-- Enable sourcelink support -->
42+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
43+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
4044
</PropertyGroup>
4145
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' And Exists('$(MSBuildThisFileDirectory)/../sharpdx.snk')">
4246
<DefineConstants>$(DefineConstants);SHARPDX_SIGNED</DefineConstants>
@@ -48,6 +52,7 @@
4852
<ItemGroup>
4953
<PackageReference Include="SharpGenTools.Sdk" Version="1.1.0" PrivateAssets="All" />
5054
<PackageReference Include="SharpGen.Doc.Msdn.Tasks" Version="1.1.0" PrivateAssets="All" />
55+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-*" PrivateAssets="All"/>
5156
<SharpGenGlobalNamespaceOverrides Include="InterfaceArray" Override="ComArray" />
5257
<SharpGenGlobalNamespaceOverrides Include="MemoryHelpers" Override="Utilities" />
5358
<SharpGenGlobalNamespaceOverrides Include="BooleanHelpers" Override="Utilities" />

0 commit comments

Comments
 (0)