Get rid of "!" character in Roslyn build root directory name, since Roslyn's 'Restore.cmd' script uses old school '%~dp0' thing in statement 'set RoslynRoot=%~dp0' and it badly supports special path symbols, like exclamation mark in '!roslyn' (exlamation mark got trimmed out from folder name)

This commit is contained in:
Alexander.Shvedov 2016-12-11 03:51:51 +03:00
Родитель 22ea54e9f8
Коммит b7ac882d41
4 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -162,7 +162,7 @@ try {
$sourceRoot = Resolve-Path "$root\source"
Write-Output " Source Root: $sourceRoot"
$roslynBuildRoot = Ensure-ResolvedPath "$root\!roslyn"
$roslynBuildRoot = Ensure-ResolvedPath "$root\roslyn_build_root"
Write-Output " Roslyn Build Root: $roslynBuildRoot"
$sitesBuildRoot = Ensure-ResolvedPath "$root\!sites"
@ -218,7 +218,7 @@ try {
$branchFsName = $repositoryName + "-" + ($_ -replace '[/\\:_]', '-')
$siteBuildRoot = Ensure-ResolvedPath "$sitesBuildRoot\$branchFsName"
$roslynBinaryRoot = Ensure-ResolvedPath "$siteBuildRoot\!roslyn"
$roslynBinaryRoot = Ensure-ResolvedPath "$siteBuildRoot\roslyn_build_root"
$siteBuildTempRoot = Ensure-ResolvedPath "$siteBuildRoot\!temp"
$siteCopyRoot = Ensure-ResolvedPath "$siteBuildRoot\!site"

Просмотреть файл

@ -60,7 +60,7 @@ try {
Write-Output "*** $_"
$siteMainRoot = Resolve-Path $siteMainRoot
$siteRoslynRoot = Resolve-Path "$($_.FullName)\!roslyn"
$siteRoslynRoot = Resolve-Path "$($_.FullName)\roslyn_build_root"
$branchInfo = ConvertFrom-Json ([IO.File]::ReadAllText("$siteRoslynRoot\!BranchInfo.json"))

1
.gitignore поставляемый
Просмотреть файл

@ -2,6 +2,7 @@
\#packages/
*.user
\!*
\roslyn_build_root
.vs/
node_modules/
bin/

Просмотреть файл

@ -1,5 +1,5 @@
@echo off
mkdir !roslyn\!tools
xcopy "%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\ildasm.exe" !roslyn\!tools /Y
mkdir roslyn_build_root\!tools
xcopy "%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\ildasm.exe" roslyn_build_root\!tools /Y
powershell "Set-ExecutionPolicy RemoteSigned Process; .\#build\Build-All.ps1"