Rename dotnet folder to dotnet cli to workaround corefx #24402 (#1826)

* Rename dotnet folder to dotnet cli to workaround corefx #24402

* Update gitignore to ignore dotnetcli folder instead of dotnet

* Fix bug in build script where cli folder name was incorrect
This commit is contained in:
Ahson Ahmed Khan 2017-10-06 18:19:38 -07:00 коммит произвёл GitHub
Родитель 39e2551b02
Коммит 74fe01aaec
5 изменённых файлов: 17 добавлений и 17 удалений

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

@ -246,7 +246,7 @@ tools/
*.ncrunchsolution
#dotnet cli
[Dd]otnet/
[Dd]otnetcli/
# Nuget.exe
nuget.exe

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

@ -2,7 +2,7 @@
# adding dotnet to the path. it is needed to run toolset csc.
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
dotnet_path=$parent_path/dotnet
dotnet_path=$parent_path/dotnetcli
export PATH=$PATH:$dotnet_path
usage()
@ -30,26 +30,26 @@ echo "Restore=$Restore."
echo "Version=$Version."
echo "BuildVersion=$BuildVersion."
if [ ! -d "dotnet" ]; then
if [ ! -d "dotnetcli" ]; then
echo "dotnet.exe not installed, downloading and installing."
if [ "$Version" = "<default>" ]; then
Version=$(head -n 1 "DotnetCLIVersion.txt")
fi
./scripts/install-dotnet.sh -Channel master -Version "$Version" -InstallDir "dotnet"
./scripts/install-dotnet.sh -Channel master -Version "$Version" -InstallDir "dotnetcli"
ret=$?
if [ $ret -ne 0 ]; then
echo "Failed to install latest dotnet.exe, exit code $ret, aborting build."
exit -1
fi
./scripts/install-dotnet.sh -Version 1.0.0 -InstallDir "dotnet"
./scripts/install-dotnet.sh -Version 1.0.0 -InstallDir "dotnetcli"
ret=$?
if [ $ret -ne 0 ]; then
echo "Failed to install framework version 1.0.0, exit code $ret, aborting build."
exit -1
fi
./scripts/install-dotnet.sh -Version 2.0.0 -InstallDir "dotnet"
./scripts/install-dotnet.sh -Version 2.0.0 -InstallDir "dotnetcli"
ret=$?
if [ $ret -ne 0 ]; then
echo "Failed to install framework version 2.0.0, exit code $ret, aborting build."
@ -57,7 +57,7 @@ if [ ! -d "dotnet" ]; then
fi
fi
dotnetExePath="dotnet/dotnet"
dotnetExePath="dotnetcli/dotnet"
myFile="corefxlab.sln"

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

@ -12,24 +12,24 @@ Write-Host "Version=$Version."
Write-Host "BuildVersion=$BuildVersion."
Write-Host "SkipTests=$SkipTests."
if (!(Test-Path "dotnet\dotnet.exe")) {
if (!(Test-Path "dotnetcli\dotnet.exe")) {
Write-Host "dotnet.exe not installed, downloading and installing."
if ($Version -eq "<default>") {
$Version = (Get-Content "$PSScriptRoot\..\DotnetCLIVersion.txt" -Raw).Trim()
}
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Channel master -Version $Version -InstallDir $PSScriptRoot\..\dotnet"
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Channel master -Version $Version -InstallDir $PSScriptRoot\..\dotnetcli"
if ($lastexitcode -ne $null -and $lastexitcode -ne 0) {
Write-Error "Failed to install latest dotnet.exe, exit code [$lastexitcode], aborting build."
exit -1
}
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Version 1.0.0 -InstallDir $PSScriptRoot\..\dotnet"
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Version 1.0.0 -InstallDir $PSScriptRoot\..\dotnetcli"
if ($lastexitcode -ne $null -and $lastexitcode -ne 0) {
Write-Error "Failed to install framework version 1.0.0, exit code [$lastexitcode], aborting build."
exit -1
}
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Version 2.0.0 -InstallDir $PSScriptRoot\..\dotnet"
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Version 2.0.0 -InstallDir $PSScriptRoot\..\dotnetcli"
if ($lastexitcode -ne $null -and $lastexitcode -ne 0) {
Write-Error "Failed to install framework version 2.0.0, exit code [$lastexitcode], aborting build."
exit -1
@ -38,7 +38,7 @@ if (!(Test-Path "dotnet\dotnet.exe")) {
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
$dotnetExePath="$PSScriptRoot\..\dotnet\dotnet.exe"
$dotnetExePath="$PSScriptRoot\..\dotnetcli\dotnet.exe"
$file = "corefxlab.sln"

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

@ -21,7 +21,7 @@ if($Help)
$ProjectPath = "$PSScriptRoot\update-dependencies\update-dependencies.csproj"
$ProjectArgs = ""
$DotNetExePath = "$PSScriptRoot\..\dotnet\dotnet.exe"
$DotNetExePath = "$PSScriptRoot\..\dotnetcli\dotnet.exe"
if ($Update)
{
@ -31,15 +31,15 @@ if ($Update)
$Version = (Get-Content "$PSScriptRoot\..\DotnetCLIVersion.txt" -Raw).Trim()
# Ensure dotnet is installed
if (!(Test-Path "dotnet\dotnet.exe")) {
if (!(Test-Path "dotnetcli\dotnet.exe")) {
Write-Host "dotnet.exe not installed, downloading and installing."
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Version $Version -InstallDir $PSScriptRoot\..\dotnet"
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Version $Version -InstallDir $PSScriptRoot\..\dotnetcli"
if ($lastexitcode -ne $null -and $lastexitcode -ne 0) {
Write-Error "Failed to install dotnet.exe, exit code [$lastexitcode], aborting build."
exit -1
}
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Version 2.0.0 -InstallDir $PSScriptRoot\..\dotnet"
Invoke-Expression -Command "$PSScriptRoot\install-dotnet.ps1 -Version 2.0.0 -InstallDir $PSScriptRoot\..\dotnetcli"
if ($lastexitcode -ne $null -and $lastexitcode -ne 0) {
Write-Error "Failed to install framework version 2.0.0, exit code [$lastexitcode], aborting build."
exit -1

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

@ -13,7 +13,7 @@ namespace System.IO.Pipelines
/// <summary>
/// Reverses a primitive value - performs an endianness swap
/// </summary>
public static unsafe T Reverse<[Primitive]T>(T value) where T : struct
private static unsafe T Reverse<[Primitive]T>(T value) where T : struct
{
// note: relying on JIT goodness here!
if (typeof(T) == typeof(byte) || typeof(T) == typeof(sbyte))