Skip to content

Commit 214926f

Browse files
Fix official build (dotnet#5040)
* fix official build * work around for official build issue * add missing fix
1 parent 41c5fc3 commit 214926f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Directory.Build.targets

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@
3838
</Target>
3939

4040
<Import Project="$(ToolsDir)/versioning.targets" Condition="Exists('$(ToolsDir)/versioning.targets')" />
41+
42+
<!-- Workaround: AssemblyInfo.cs is not embedded -->
43+
<!-- https://github.com/dotnet/sourcelink/issues/572 -->
44+
<PropertyGroup>
45+
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
46+
</PropertyGroup>
47+
<ItemGroup>
48+
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
49+
</ItemGroup>
50+
4151
</Project>

0 commit comments

Comments
 (0)