6bdd276d05
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
39 lines
812 B
PowerShell
39 lines
812 B
PowerShell
msbuild /nologo /v:quiet build.proj /t:build /flp1:v=detailed`;LogFile=dumptargets.log /p:SkipTests=true
|
|
|
|
$targets = gc dumptargets.log | ? { $_.Contains("DumpTargets>") -or ($_.Contains("is building") -and ($_.Contains("default target") -or $_.Contains("Build"))) }
|
|
|
|
$ht = new-object Hashtable
|
|
$duplicates = @();
|
|
$foundConflict = $false;
|
|
$lastIsBuilding = "";
|
|
|
|
foreach($target in $targets)
|
|
{
|
|
#"->" + $target
|
|
if ($target.Contains("is building"))
|
|
{
|
|
$lastIsBuilding = $target;
|
|
continue;
|
|
}
|
|
|
|
if ($ht.Contains($target))
|
|
{
|
|
$buildingProject = $ht[$target];
|
|
|
|
"Conflict:"
|
|
"$target"
|
|
"1> $buildingProject"
|
|
"2> $lastIsBuilding"
|
|
"`n"
|
|
$foundConflict = $true;
|
|
}
|
|
else
|
|
{
|
|
$ht.Add($target, $lastIsBuilding);
|
|
}
|
|
}
|
|
|
|
if ($foundConflict -eq $false)
|
|
{
|
|
"Found no conflicts";
|
|
} |