Skip to content

Commit eaf4d96

Browse files
committed
Fix packaging
1 parent d32ca9d commit eaf4d96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Directory.Build.targets

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
<ImplicitlyExpandNETStandardFacades Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">false</ImplicitlyExpandNETStandardFacades>
1818
</PropertyGroup>
1919

20-
<Target Name="_UpdatePackageId" BeforeTargets="$(PackDependsOn)" >
20+
<!--
21+
Workaround for cyclic package reference. PackageId is set to ain invalid value above (in evaluation phase to be picked up by Restore),
22+
then updated to the actual value before Pack target and SourceLink source package generation target.
23+
-->
24+
<Target Name="_UpdatePackageId" BeforeTargets="$(PackDependsOn);InitializeSourceControlInformation" >
2125
<PropertyGroup>
2226
<PackageId>$(_ProjectDefinedPackageId)</PackageId>
2327
<PackageId Condition="'$(PackageId)' == ''">$(AssemblyName)</PackageId>

0 commit comments

Comments
 (0)