Skip to content

Commit cace1f7

Browse files
Add SBOM generation to NuGet Package output using Microsoft.Sbom.Targets
1 parent a01bd8d commit cace1f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
</PropertyGroup>
1111

1212
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
13+
<GenerateSBOM>true</GenerateSBOM>
1314
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1415
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1516
<NoWarn>$(NoWarn);Uno0001</NoWarn>

Directory.Build.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
</ItemGroup>
66

77
<ItemGroup Condition="'$(Configuration)' == 'Release'">
8+
<PackageReference Include="Microsoft.Sbom.Targets" Version="3.0.1" PrivateAssets="all" />
89
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="6.12.1" PrivateAssets="all" Pack="false" />
9-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
10+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
1011
</ItemGroup>
1112

1213
<PropertyGroup>

0 commit comments

Comments
 (0)