зеркало из
1
0
Форкнуть 0
CliCommandLineParser/build.ps1

30 строки
931 B
PowerShell
Исходник Обычный вид История

2017-03-02 08:12:39 +03:00
[cmdletbinding()]
param(
2017-03-03 01:18:56 +03:00
[Parameter(Position=0, ValueFromRemainingArguments=$true)]
$ExtraParameters
2017-03-02 08:12:39 +03:00
)
$ErrorActionPreference="Stop"
$ProgressPreference="SilentlyContinue"
2017-03-03 01:18:56 +03:00
$RepoRoot = "$PSScriptRoot"
$DOTNET_INSTALL_DIR="$REPOROOT/.dotnet"
2017-11-11 00:46:07 +03:00
$env:REPOROOT="$RepoRoot"
2017-03-03 01:18:56 +03:00
$env:XDG_DATA_HOME="$REPOROOT/.nuget/packages"
$env:NUGET_PACKAGES="$REPOROOT/.nuget/packages"
$env:NUGET_HTTP_CACHE_PATH="$REPOROOT/.nuget/packages"
$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
if (-Not (Test-Path $DOTNET_INSTALL_DIR))
2017-03-02 08:12:39 +03:00
{
2017-03-03 01:18:56 +03:00
New-Item -Type "directory" -Path $DOTNET_INSTALL_DIR
2017-03-02 08:12:39 +03:00
}
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "$DOTNET_INSTALL_DIR/dotnet-install.ps1"
& $DOTNET_INSTALL_DIR/dotnet-install.ps1 -InstallDir "$DOTNET_INSTALL_DIR" -Version 1.1.4
2017-03-02 08:12:39 +03:00
2017-03-03 01:18:56 +03:00
$env:PATH="$DOTNET_INSTALL_DIR;$env:PATH"
2017-03-02 08:12:39 +03:00
2017-03-03 03:04:14 +03:00
& dotnet msbuild build.proj /t:MakeVersionProps
& dotnet msbuild build.proj /v:n /fl /flp:v=n $ExtraParameters