-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
25 lines (23 loc) · 1.07 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
25 lines (23 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<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>