diff --git a/scripts/README.md b/scripts/README.md index 7092792d58b44..50a17000fdd63 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,7 +1,3 @@ -## Script files +# Script files This directory contains scripts, and supporting files, that are invoked manually and not used by the build process. - - - - diff --git a/scripts/build_mono.sh b/scripts/build_mono.sh deleted file mode 100644 index 8d4a23f7b4efd..0000000000000 --- a/scripts/build_mono.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -mkdir -p ../../Binaries/mono_build -cd ../../Binaries/mono_build - -sudo apt-get install git autoconf libtool automake build-essential mono-devel gettext cmake - -PREFIX=$PWD/mono -VERSION=5.8.0.88 -curl https://download.mono-project.com/sources/mono/mono-${VERSION}.tar.bz2 | tar xj -pushd mono-$VERSION -./configure --prefix=$PREFIX -make -make install -popd -tar czf mono-${VERSION}.tar.gz mono diff --git a/scripts/edit-designers.ps1 b/scripts/edit-designers.ps1 deleted file mode 100644 index ec6efcf19d171..0000000000000 --- a/scripts/edit-designers.ps1 +++ /dev/null @@ -1,87 +0,0 @@ -# The new project system does not support designers. This blocks our ability to make XAML -# changes through the designer. A rare event but necessary on occasiona. -# -# This script helps with the times where XAML changes are needed. It will temporarily revert -# the projects which have XAML files to the legacy project system. The XAML edits can then -# be processed and the coversion can be reverted. -# -# Bug tracking project system getting designer support -# https://github.com/dotnet/project-system/issues/1467 - -[CmdletBinding(PositionalBinding=$false)] -param () - -Set-StrictMode -version 2.0 -$ErrorActionPreference = "Stop" - -$projectList = @( - 'src\VisualStudio\Core\Impl\ServicesVisualStudioImpl.csproj', - 'src\VisualStudio\CSharp\Impl\CSharpVisualStudio.csproj', - 'src\VisualStudio\VisualBasic\Impl\BasicVisualStudio.vbproj', - 'src\EditorFeatures\Core\EditorFeatures.csproj', - 'src\VisualStudio\Core\Def\ServicesVisualStudio.csproj') - -# Edit all of the project files to no longer have a TargetFramework element. This is what -# causes the selector to use the new project system. -function Change-ProjectFiles() { - foreach ($proj in $projectList) { - $proj = Join-Path $RepoRoot $proj - $lines = Get-Content $proj - for ($i = 0; $i -lt $lines.Length; $i++) { - $line = $lines[$i] - if ($line -match ".*TargetFramework") { - $lines[$i] = " v4.6" - } - } - - [IO.File]::WriteAllLines($proj, $lines) - } -} - -# Change the solution file to use the legacy project system GUID. -function Change-Solution() { - $solution = Join-Path $RepoRoot "Roslyn.sln" - $lines = Get-Content $solution - for ($i = 0; $i -lt $lines.Length; $i++) { - $line = $lines[$i] - foreach ($proj in $projectList) { - if ($line -like "*$proj*") { - Write-Host "Found $line" - $ext = [IO.Path]::GetExtension($proj) - if ($ext -eq ".csproj") { - $oldGuid = "FAE04EC0-301F-11D3-BF4B-00C04F79EFBC" - $newGuid = "9A19103F-16F7-4668-BE54-9A1E7A4F7556" - } else { - $oldGuid = "F184B08F-C81C-45F6-A57F-5ABD9991F28F" - $newGuid = "778DAE3C-4631-46EA-AA77-85C1314464D9" - } - - $line = $line.Replace($newGuid, $oldGuid) - Write-Host "New Line $line" - $lines[$i] = $line - } - } - } - - [IO.File]::WriteAllLines($solution, $lines) -} - -try { - . (Join-Path $PSScriptRoot "build-utils.ps1") - Push-Location $RepoRoot - - Change-ProjectFiles - Change-Solution - - exit 0 - -} -catch { - Write-Host $_ - Write-Host $_.Exception - Write-Host $_.ScriptStackTrace - exit 1 -} -finally { - Pop-Location -} diff --git a/scripts/run_perf.ps1 b/scripts/run_perf.ps1 deleted file mode 100644 index 71c27fc8af05f..0000000000000 --- a/scripts/run_perf.ps1 +++ /dev/null @@ -1,27 +0,0 @@ -set-variable -name LastExitCode 0 -set-strictmode -version 2.0 -$ErrorActionPreference="Stop" - -$CPCLocation="C:/CPC" - -./build/scripts/cleanup_perf.ps1 $CPCLocation - -if ( -not $? ) -{ - echo "cleanup failed" - exit 1 -} - -Invoke-WebRequest -Uri http://dotnetci.blob.core.windows.net/roslyn-perf/cpc.zip -OutFile cpc.zip -UseBasicParsing -[Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') | Out-Null -[IO.Compression.ZipFile]::ExtractToDirectory('cpc.zip', $CPCLocation) - -./build/scripts/cibuild.cmd -configuration Release -testPerfRun - -if ( -not $? ) -{ - echo "perf run failed" - exit 1 -} - -./build/scripts/cleanup_perf.ps1 $CPCLocation -ShouldArchive diff --git a/scripts/test-nuget-cache.ps1 b/scripts/test-nuget-cache.ps1 deleted file mode 100644 index 6333cd8b764fd..0000000000000 --- a/scripts/test-nuget-cache.ps1 +++ /dev/null @@ -1,71 +0,0 @@ -<# - -This script exists to help us track down the NuGet cache corruption bug that is showing up -in Jenkins. It will look for critical files in the NuGet which have been zerod out. - -https://github.com/dotnet/roslyn/issues/19882 - -#> - -[CmdletBinding(PositionalBinding=$false)] -param () - -Set-StrictMode -version 2.0 -$ErrorActionPreference="Stop" - -function Test-ZeroFile([string]$filePath) { - $bytes = [IO.File]::ReadAllBytes($filePath) - if ($bytes.Length -eq 0) { - return $false - } - - foreach ($b in $bytes) { - if ($b -ne 0) { - return $false - } - } - - return $true -} - -function Go() { - Push-Location (Get-PackagesDir) - try { - $failed = @() - foreach ($filePath in Get-ChildItem -re -in *.nuspec,*proj,*settings,*targets) { - if (Test-Path $filePath -PathType Container) { - continue; - } - - if (Test-ZeroFile $filePath) { - Write-Host "Testing $filePath FAILED" - $failed += $filePath - } - else { - Write-Host "Testing $filePath passed" - } - } - - if ($failed.Length -gt 0) { - Write-Host "Detected zero'd out files in Nuget cache" - foreach ($f in $failed) { - Write-Host "`t$f" - } - - exit 1 - } - } - finally { - Pop-Location - } -} - -try { - . (Join-Path $PSScriptRoot "build-utils.ps1") - Go - exit 0 -} -catch { - Write-Host $_ - exit 1 -}