Skip to content

Microsoft.Sbom.Targets SbomGenerationVerbosity property has no effect #1377

@adamralph

Description

@adamralph

I've added this to my csproj, based on https://idunno.org/generating-sboms-for-net-apps-and-nuget-packages-with-microsoft-sbom-targets/

<Choose>
  <When Condition="'$(Configuration)' == 'Release'">
    <PropertyGroup>
      <GenerateSBOM>true</GenerateSBOM>
      <SbomGenerationVerbosity>warning</SbomGenerationVerbosity>
    </PropertyGroup>
    <ItemGroup>
      <PackageReference Include="Microsoft.Sbom.Targets" Version="4.1.4" PrivateAssets="All" />
    </ItemGroup>
  </When>
</Choose>

However, the SbomGenerationVerbosity property seems to have no effect. No matter what I set to (warning, error, fatal, etc.), I still get messages prepended with ##[information].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions