|
|
@@ -253,7 +253,7 @@ try {
|
|
|
}
|
|
|
}
|
|
|
# Check for changes in Unshipped in servicing branches
|
|
|
- if ($targetBranch -like 'release*' -and $targetBranch -notlike '*preview*' -and $file -like '*PublicAPI.Unshipped.txt') {
|
|
|
+ if ($targetBranch -like 'release*' -and $targetBranch -notlike '*preview*' -and $targetBranch -notlike '*rc1*' -and $targetBranch -notlike '*rc2*' -and $file -like '*PublicAPI.Unshipped.txt') {
|
|
|
$changedAPIBaselines.Add($file)
|
|
|
}
|
|
|
}
|
|
|
@@ -263,7 +263,8 @@ try {
|
|
|
|
|
|
if ($changedAPIBaselines.count -gt 0) {
|
|
|
LogError ("Detected modification to baseline API files. PublicAPI.Shipped.txt files should only " +
|
|
|
- "be updated after a major release. See /docs/APIBaselines.md for more information.")
|
|
|
+ "be updated after a major release, and PublicAPI.Unshipped.txt files should not " +
|
|
|
+ "be updated in release branches. See /docs/APIBaselines.md for more information.")
|
|
|
LogError "Modified API baseline files:"
|
|
|
foreach ($file in $changedAPIBaselines) {
|
|
|
LogError $file
|