We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d32ca9d commit eaf4d96Copy full SHA for eaf4d96
src/Directory.Build.targets
@@ -17,7 +17,11 @@
17
<ImplicitlyExpandNETStandardFacades Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">false</ImplicitlyExpandNETStandardFacades>
18
</PropertyGroup>
19
20
- <Target Name="_UpdatePackageId" BeforeTargets="$(PackDependsOn)" >
+ <!--
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" >
25
<PropertyGroup>
26
<PackageId>$(_ProjectDefinedPackageId)</PackageId>
27
<PackageId Condition="'$(PackageId)' == ''">$(AssemblyName)</PackageId>
0 commit comments