Files
Prism/Directory.Build.targets
Dan Siegel c23499c98d Add comprehensive metadata for SBOM generation
This update ensures that generated Software Bill of Materials (SBOMs) include detailed company and copyright information. It also explicitly sets the package version for SBOMs and enables fetching license information, improving accuracy and supply chain security.
2026-05-13 07:00:35 -06:00

26 lines
1.1 KiB
XML

<Project>
<Import Project="winappsdk-workarounds.targets" Condition=" $(IsUnoProject) == 'true' " />
<PropertyGroup>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
</PropertyGroup>
<PropertyGroup Condition=" $(IsPackable) ">
<GenerateSBOM>true</GenerateSBOM>
<SbomGenerationFetchLicenseInformation>true</SbomGenerationFetchLicenseInformation>
<SbomGenerationPackageSupplier>$(Company)</SbomGenerationPackageSupplier>
<!-- Nuget source link -->
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<Target Name="SetSbomMetadata"
BeforeTargets="GenerateSbomTarget"
AfterTargets="GetBuildVersion">
<PropertyGroup>
<SbomGenerationPackageVersion>$(PackageVersion)</SbomGenerationPackageVersion>
</PropertyGroup>
</Target>
</Project>