You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console.Error.WriteLine("The input contains more than one ContentDirectory build (different BuildManifestHash.txt values). Analyze a single build at a time.");
"Warning: analyzing ContentDirectory output without its ContentLayout.json. The analysis will be incomplete: "+
233
+
"references between content files cannot be resolved (they will appear in dangling_refs) and source asset "+
234
+
"information is unavailable. Re-run with the build's ContentLayout.json (found in its build report folder) "+
235
+
"included in the input paths.");
236
+
}
237
+
238
+
returntrue;
239
+
}
240
+
241
+
(stringFullPath,stringDisplayRoot)selected;
242
+
243
+
if(hasContentDirectory)
244
+
{
245
+
if(buildHash==null)
246
+
{
247
+
Console.Error.WriteLine("A ContentLayout.json is in the input but no BuildManifestHash.txt was found for the ContentDirectory content, so the layout cannot be validated against the build.");
248
+
returnfalse;
249
+
}
250
+
251
+
// The hash match guarantees the layout describes exactly this build; a stale or
252
+
// unrelated layout would silently produce misleading results.
Console.Error.WriteLine($"No ContentLayout.json in the input matches the analyzed build (BuildManifestHash {buildHash}). Include the layout from the build report folder of this build.");
258
+
returnfalse;
259
+
}
260
+
}
261
+
elseif(layoutCandidates.Count==1)
262
+
{
263
+
// A layout without its build content is a valid input (e.g. to query a large layout).
264
+
selected=layoutCandidates[0];
265
+
}
266
+
else
267
+
{
268
+
Console.Error.WriteLine("The input contains multiple ContentLayout.json files but no ContentDirectory build to match them against. Only a single layout can be analyzed.");
269
+
returnfalse;
270
+
}
271
+
272
+
foreach(varcandidateinlayoutCandidates)
273
+
{
274
+
if(candidate!=selected)
275
+
{
276
+
Console.Error.WriteLine($"Ignoring \"{candidate.FullPath}\": its BuildManifestHash does not match the analyzed build.");
277
+
files.Remove(candidate);
278
+
}
279
+
}
280
+
281
+
// Import the layout before the content files it describes, so their references can be
0 commit comments