Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Commit 2aa8643

Browse files
committed
Add Source Link info to binaries
1 parent eba286b commit 2aa8643

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/CodeGeneration.Roslyn.Plugin.Sdk/CodeGeneration.Roslyn.Plugin.Sdk.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<Description>The MSBuild SDK that helps correctly create CodeGeneration.Roslyn plugins.</Description>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
77
<DevelopmentDependency>true</DevelopmentDependency>
8+
<SymbolPackageFormat></SymbolPackageFormat>
9+
<IncludeSymbols>false</IncludeSymbols>
810
<!--
911
Min Version is 2.5 because that's when build/ folder support was introduced:
1012
https://docs.microsoft.com/en-us/nuget/release-notes/nuget-2.5#automatic-import-of-msbuild-targets-and-props-files
@@ -23,7 +25,7 @@
2325
<ItemGroup>
2426
<None Include="**/*.props;**/*.targets" Pack="true" PackagePath="" />
2527
</ItemGroup>
26-
28+
2729
<!--
2830
This target adds a Sdk/Version.props file to the nuget package.
2931
That props file contains CodeGenerationRoslynPluginSdkVersion property,

src/Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<RepositoryUrl>https://github.com/aarnott/CodeGeneration.Roslyn</RepositoryUrl>
1010
<RepositoryType>git</RepositoryType>
1111
<PackageReleaseNotes>https://github.com/AArnott/CodeGeneration.Roslyn/blob/master/CHANGELOG.md</PackageReleaseNotes>
12+
13+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
14+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
15+
<IncludeSymbols>true</IncludeSymbols>
16+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1217
</PropertyGroup>
1318

1419
<PropertyGroup>
@@ -39,6 +44,7 @@
3944
<PackageReference Include="Nerdbank.GitVersioning" Version="3.0.28" PrivateAssets="all" />
4045
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" IncludeAssets="analyzers" PrivateAssets="all" />
4146
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="all"/>
47+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
4248
</ItemGroup>
4349

4450
<ItemGroup>

0 commit comments

Comments
 (0)