Skip to content

Commit

Permalink
Use Path.Combine for Unzip and Nupkg paths (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavoaca1997 authored Aug 14, 2024
1 parent 4c9354c commit 5667a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.Sbom.Targets/Microsoft.Sbom.Targets.targets
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
<!-- Unzip Nuget package, so it can be scanned by the SBOM Task. -->
<PropertyGroup>
<NugetPackage>
$(PackageOutputPath)\$(PackageId).$(PackageVersion).nupkg
$([System.IO.Path]::Combine($(PackageOutputPath), $(PackageId).$(PackageVersion).nupkg))
</NugetPackage>
<NugetPackageUnzip>
$(PackageOutputPath)\$(PackageId).$(PackageVersion).$(UnzipGuid).temp
$([System.IO.Path]::Combine($(PackageOutputPath), $(PackageId).$(PackageVersion).$(UnzipGuid).temp))
</NugetPackageUnzip>
</PropertyGroup>
<Unzip DestinationFolder="$(NugetPackageUnzip)" SourceFiles="$(NugetPackage)" OverwriteReadOnlyFiles="true" />
Expand Down

0 comments on commit 5667a00

Please sign in to comment.