🔧 Enables SBOM generation only for packable projects

This commit is contained in:
2025-11-11 02:28:19 +02:00
parent 4119b8c82b
commit b2e46fe7a7

View File

@@ -49,7 +49,6 @@
<EmitCompilerGeneratedFiles>false</EmitCompilerGeneratedFiles> <EmitCompilerGeneratedFiles>false</EmitCompilerGeneratedFiles>
<GenerateRequiresPreviewFeaturesAttribute>False</GenerateRequiresPreviewFeaturesAttribute> <GenerateRequiresPreviewFeaturesAttribute>False</GenerateRequiresPreviewFeaturesAttribute>
<DefaultItemExcludes>$(DefaultItemExcludes);*.log;*.binlog</DefaultItemExcludes> <DefaultItemExcludes>$(DefaultItemExcludes);*.log;*.binlog</DefaultItemExcludes>
<GenerateSBOM>true</GenerateSBOM>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="$(ArtifactsPath) == '' AND $(DisableCustomArtifactsPath) != 'true'"> <PropertyGroup Condition="$(ArtifactsPath) == '' AND $(DisableCustomArtifactsPath) != 'true'">
@@ -131,6 +130,7 @@
<!-- Mark assemblies as CLS compliant so the compiler warns on non compliant usage --> <!-- Mark assemblies as CLS compliant so the compiler warns on non compliant usage -->
<PropertyGroup Condition="$(IsPackable) == 'true'"> <PropertyGroup Condition="$(IsPackable) == 'true'">
<ClsCompliant>true</ClsCompliant> <ClsCompliant>true</ClsCompliant>
<GenerateSBOM>true</GenerateSBOM>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<AssemblyAttribute Include="System.CLSCompliant"> <AssemblyAttribute Include="System.CLSCompliant">