mirror of
https://github.com/PrismLibrary/Prism.git
synced 2026-10-16 20:51:12 +08:00
c23499c98d
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.
26 lines
1.1 KiB
XML
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>
|