-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable PublicApiAnalyzers See: https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md Remove apiCompat files. Include internals as there are friend assemblies. * Add mark-shipped.ps1 * update changes to internal api --------- Co-authored-by: Keegan Caruso <[email protected]> Co-authored-by: Westin Musser <[email protected]> Co-authored-by: Westin Musser <[email protected]>
- Loading branch information
1 parent
83b7118
commit 492a823
Showing
103 changed files
with
5,891 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
Tools/apiCompat/baseline/ApiCompatBaseline.netstandard2.0.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[CmdletBinding(PositionalBinding=$false)] | ||
param () | ||
|
||
Set-StrictMode -version 2.0 | ||
$ErrorActionPreference = "Stop" | ||
|
||
function MarkShipped([string]$dir) { | ||
$shippedFilePath = Join-Path $dir "PublicAPI.Shipped.txt" | ||
$shipped = @() | ||
$shipped += Get-Content $shippedFilePath | ||
|
||
$unshippedFilePath = Join-Path $dir "PublicAPI.Unshipped.txt" | ||
$unshipped = Get-Content $unshippedFilePath | ||
$removed = @() | ||
$removedPrefix = "*REMOVED*"; | ||
Write-Host "Processing $dir" | ||
|
||
foreach ($item in $unshipped) { | ||
if ($item.Length -gt 0) { | ||
if ($item.StartsWith($removedPrefix)) { | ||
$item = $item.Substring($removedPrefix.Length) | ||
$removed += $item | ||
} | ||
else { | ||
$shipped += $item | ||
} | ||
} | ||
} | ||
|
||
$shipped | Sort-Object -Unique |Where-Object { -not $removed.Contains($_) } | Out-File $shippedFilePath -Encoding Ascii | ||
Clear-Content $unshippedFilePath | ||
} | ||
|
||
try { | ||
foreach ($file in Get-ChildItem -re -in "PublicApi.Shipped.txt") { | ||
$dir = Split-Path -parent $file | ||
MarkShipped $dir | ||
} | ||
} | ||
catch { | ||
Write-Host $_ | ||
Write-Host $_.Exception | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Oops, something went wrong.