-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild Microsoft.CodeAnalysis (#50968)
Co-authored-by: Jared Parsons <jaredpparsons@gmail.com>
- Loading branch information
1 parent
b272206
commit bf2a49d
Showing
39 changed files
with
1,173 additions
and
371 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
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
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,43 @@ | ||
<# | ||
This script tests that Roslyn artifacts are rebuildable--i.e. that the source code and resources can be identified | ||
#> | ||
|
||
[CmdletBinding(PositionalBinding=$false)] | ||
param( | ||
[string]$configuration = "Debug", | ||
[switch]$ci = $false, | ||
[switch]$help) | ||
|
||
Set-StrictMode -version 2.0 | ||
$ErrorActionPreference="Stop" | ||
|
||
function Print-Usage() { | ||
Write-Host "Usage: test-rebuild.ps1" | ||
Write-Host " -configuration Build configuration ('Debug' or 'Release')" | ||
Write-Host " -ci Set when running on CI server" | ||
Write-Host " -help Print help and exit" | ||
} | ||
|
||
try { | ||
if ($help) { | ||
Print-Usage | ||
exit 0 | ||
} | ||
|
||
. (Join-Path $PSScriptRoot "build-utils.ps1") | ||
Push-Location $RepoRoot | ||
|
||
Write-Host "Building Roslyn" | ||
Exec-Console (Join-Path $PSScriptRoot "build.ps1") "-restore -build -ci:$ci -configuration:$configuration -pack -binaryLog" | ||
Exec-Console "artifacts\bin\BuildValidator\$configuration\net472\BuildValidator.exe" "--assembliesPath '$ArtifactsDir/obj/Microsoft.CodeAnalysis'" | ||
|
||
exit 0 | ||
} | ||
catch [exception] { | ||
Write-Host $_ | ||
Write-Host $_.Exception | ||
exit 1 | ||
} | ||
finally { | ||
Pop-Location | ||
} |
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
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
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
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
Oops, something went wrong.