Skip to content

Commit b97bec6

Browse files
committed
Properly handle custom nupkg output path when validating
1 parent 45a6177 commit b97bec6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Serilog.Formatting.Log4Net.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@
5555

5656
<Target Name="ValidateNuGetPackage" AfterTargets="Pack">
5757
<Exec Command="dotnet tool restore" />
58-
<Exec Command="dotnet validate package local $(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg" />
58+
<Exec Command="dotnet validate package local @(NuGetPackOutput)" Condition="%(NuGetPackOutput.extension) == '.nupkg'" />
5959
</Target>
6060

6161
<Target Name="PrintPackageVersionForGitHubActions" AfterTargets="Pack">
6262
<Message Importance="high" Text="::set-output name=version::$(PackageVersion)" />
63+
<Message Importance="high" Text="::set-output name=nupkg-filename::$(PackageId).$(PackageVersion).nupkg" />
6364
</Target>
6465

6566
</Project>

0 commit comments

Comments
 (0)