Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MSBuild Logging APIs for Task output instead of StdOut #933

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reduce verbosity of pre-existing folder check to prevent errant MSBui…
…ld warnings.
  • Loading branch information
baronfel committed Mar 1, 2025
commit 3b8ebf0cb7c8775d981eed33f967e8119a56fcf7
4 changes: 2 additions & 2 deletions src/Microsoft.Sbom.Api/Workflows/SbomGenerationWorkflow.cs
Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ public virtual async Task<bool> RunAsync()
recorder.RecordTotalErrors(validErrors);
}

// Delete the generated _manifest folder if generation failed.
// Delete the generated _manifest folder if generation failed.
if (deleteSbomDir || validErrors.Any())
{
DeleteManifestFolder(sbomDir);
@@ -242,7 +242,7 @@ private void RemoveExistingManifestDirectory()
$"overwrite this folder.");
}

log.Warning(
log.Information(
$"Deleting pre-existing folder {rootManifestFolderPath} as {Constants.DeleteManifestDirBoolVariableName}" +
$" is 'true'.");
fileSystemUtils.DeleteDir(rootManifestFolderPath, true);