Skip to content

Commit

Permalink
ARROW-8505: [Release][C#] "sourcelink test" is failed by Apache.Arrow…
Browse files Browse the repository at this point in the history
….AssemblyInfo.cs

Workaround dotnet/sourcelink#572 by explicitly embedding the AssemblyAttributes file into the pdb.
  • Loading branch information
eerhardt committed Apr 25, 2020
1 parent 045fe13 commit 0e38edd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions csharp/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>

<!-- The following works around https://github.com/dotnet/sourcelink/issues/572 -->
<PropertyGroup>
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
</PropertyGroup>
<ItemGroup>
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
<EmbeddedFiles Include="$(TargetFrameworkMonikerAssemblyAttributesPath)"/>
</ItemGroup>

</Project>

0 comments on commit 0e38edd

Please sign in to comment.