Skip to content

Commit 3246f2f

Browse files
committed
Ensure GenerateRuntimeJson runs before Pack
The pack task itself doesn't do anything but depend on a sequence of tasks. As a result running a target `BeforeTargets="Pack"` actually runs after the package is created, since dependencies run before BeforeTargets. Sequence the target before GenerateNuspec instead.
1 parent 024e2b9 commit 3246f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/Microsoft.NETCore.Platforms/src/Microsoft.NETCore.Platforms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<PackageReference Include="NuGet.ProjectModel" Version="$(RefOnlyNugetProjectModelVersion)" />
4949
</ItemGroup>
5050

51-
<Target Name="GenerateRuntimeJson" Condition="'$(AdditionalRuntimeIdentifiers)' != ''" BeforeTargets="Pack">
51+
<Target Name="GenerateRuntimeJson" Condition="'$(AdditionalRuntimeIdentifiers)' != ''" BeforeTargets="GenerateNuspec">
5252
<MakeDir Directories="$(IntermediateOutputPath)" />
5353
<GenerateRuntimeGraph RuntimeGroups="@(RuntimeGroupWithQualifiers)"
5454
AdditionalRuntimeIdentifiers="$(AdditionalRuntimeIdentifiers)"

0 commit comments

Comments
 (0)