LogError"Missing version variable '$varName' in the 'Automated' property group in $repoRoot/eng/Versions.props"
continue
}
$versionVars.Remove($varName)|Out-Null
$expectedVersion=$dep.Version
$actualVersion=$versionVar.InnerText
if($expectedVersion-ne$actualVersion){
LogError`
"Version variable '$varName' does not match the value in Version.Details.xml. Expected '$expectedVersion', actual '$actualVersion'"`
-filepath"$repoRoot\eng\Versions.props"
}
}
foreach($unexpectedVarin$versionVars){
LogError`
"Version variable '$unexpectedVar' does not have a matching entry in Version.Details.xml. See https://github.com/aspnet/AspNetCore/blob/master/docs/ReferenceResolution.md for instructions on how to add a new dependency."`
-filepath"$repoRoot\eng\Versions.props"
}
Write-Host"Checking that solutions are up to date"
Get-ChildItem"$repoRoot/*.sln"-Recurse`
|%{
Write-Host" Checking $(Split-Path-Leaf$_)"
$slnDir=Split-Path-Parent$_
$sln=$_
&dotnetsln$_list`
|?{$_-ne'Project(s)'-and$_-ne'----------'}`
|%{
$proj=Join-Path$slnDir$_
if(-not(Test-Path$proj)){
LogError"Missing project. Solution references a project which does not exist: $proj. [$sln] "