Skip to content

Commit a96232f

Browse files
committed
Make unmatched assets an error
1 parent 172bbce commit a96232f

File tree

1 file changed

+2
-2
lines changed
  • src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks

1 file changed

+2
-2
lines changed

src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/JoinVerticals.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public override bool Execute()
5050
List<AssetVerticalMatchResult> selectedVerticals = joinVerticalsAssetSelector.SelectAssetMatchingVertical(manifests).ToList();
5151

5252
var notMatchedAssets = selectedVerticals.Where(o => o.MatchType == AssetVerticalMatchType.NotSpecified).ToList();
53-
Log.LogMessage(MessageImportance.High, $"### {notMatchedAssets.Count} Assets not properly matched to vertical: ###");
53+
Log.LogError($"### {notMatchedAssets.Count} Assets not properly matched to vertical: ###");
5454
foreach (var matchResult in notMatchedAssets)
5555
{
5656
Log.LogMessage(MessageImportance.High, $"Asset: {matchResult.AssetId} -- Matched to: {matchResult.VerticalName}, Other verticals: {string.Join(", ", matchResult.OtherVerticals)}");
@@ -85,7 +85,7 @@ public override bool Execute()
8585
CopyVerticalAssets(Path.Combine(VerticalArtifactsBaseFolder, verticalName, _packagesFolderName, _releaseFolderName), packagesOutputDirectory, assetListPackages);
8686
CopyVerticalAssets(Path.Combine(VerticalArtifactsBaseFolder, verticalName, _assetsFolderName, _releaseFolderName), assetsOutputDirectory, assetListBlobs);
8787
}
88-
88+
8989
return !Log.HasLoggedErrors;
9090

9191

0 commit comments

Comments
 (0)