Skip to content

Commit d595fac

Browse files
committed
sourcelink it is
1 parent c6a151e commit d595fac

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
Version 5.1.0
1919
* updating roslyn packages to 2.10.0
2020
* updating mvc packages to 5.2.7
21+
* fixing SourceLink support for native pdbs
2122
2223
Version 5.0.0
2324
* updating how Precompilation.Build resolves it's Workspaces dependency

StackExchange.Precompilation.Build/StackExchange.Precompilation.Build.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<Name>StackExchange.Precompilation</Name>
1818
</ProjectReference>
1919
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.10.0" PrivateAssets="all" />
20+
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="1.7.0" PrivateAssets="all" />
2021
</ItemGroup>
2122

2223
<Target Name="_ToolsSetup">
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
 <!--
2+
HACK
3+
4+
We need to include the native DiaSymReader Native runtime files in order to support sourcelink etc.
5+
Roslyn does it too: https://github.com/dotnet/roslyn/blob/1fe72cd3f196005a1a407c582f60145d096b2f43/src/Compilers/Core/Portable/Microsoft.CodeAnalysis.csproj#L26-L37
6+
We make build/Microsoft.DiaSymRerader.Native.props from the package do it, via the existance of this dummy packages.config file.
7+
-->

0 commit comments

Comments
 (0)