Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/WebExpress.WebCore/WebExpress.WebCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@
<PropertyGroup>
<SbomUnzipPath>$(IntermediateOutputPath)sbom</SbomUnzipPath>
<SbomFileName>$(PackageId.ToLowerInvariant())</SbomFileName>
<!-- dotnet pack -o sets PackageOutputPath without a trailing slash -->
<SbomPackageDir>$([MSBuild]::EnsureTrailingSlash('$(PackageOutputPath)'))</SbomPackageDir>
</PropertyGroup>
<RemoveDir Directories="$(SbomUnzipPath)" />
<Unzip SourceFiles="$(PackageOutputPath)$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$(SbomUnzipPath)" />
<Unzip SourceFiles="$(SbomPackageDir)$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$(SbomUnzipPath)" />
<ItemGroup>
<SbomFile Include="$(SbomUnzipPath)\_manifest\$(SbomSpecification)\manifest.spdx.json" TargetPath="$(PackageOutputPath)$(SbomFileName).spdx.json" />
<SbomFile Include="$(SbomUnzipPath)\_manifest\$(SbomSpecification)\manifest.spdx.json.sha256" TargetPath="$(PackageOutputPath)$(SbomFileName).spdx.json.sha256" />
<SbomFile Include="$(SbomUnzipPath)\_manifest\$(SbomSpecification)\manifest.spdx.json" TargetPath="$(SbomPackageDir)$(SbomFileName).spdx.json" />
<SbomFile Include="$(SbomUnzipPath)\_manifest\$(SbomSpecification)\manifest.spdx.json.sha256" TargetPath="$(SbomPackageDir)$(SbomFileName).spdx.json.sha256" />
</ItemGroup>
<Copy SourceFiles="@(SbomFile)" DestinationFiles="@(SbomFile->'%(TargetPath)')" />
<RemoveDir Directories="$(SbomUnzipPath)" />
Expand Down
Loading