Skip to content

Commit 3886f39

Browse files
committed
Add workaround for sourcelink issue.
1 parent 885459f commit 3886f39

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
obj
33
bin
44
*.user
5+
/.AssemblyAttributes

BuildTimestampGenerator.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,13 @@
6363
</Content>
6464
</ItemGroup>
6565

66+
<!-- workaround for sourcelink issue: https://github.com/dotnet/sourcelink/issues/572 -->
67+
<PropertyGroup>
68+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
69+
</PropertyGroup>
70+
<ItemGroup>
71+
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
72+
</ItemGroup>
73+
<!-- end workaround for sourcelink issue -->
74+
6675
</Project>

0 commit comments

Comments
 (0)