.NET Core 2+ Naming and Versioning
New file name structure for the runtime and the CLI per: https://github.com/dotnet/designs/issues/2 The renaming of assets, therefore the dotnet installation scripts must change to accommodate. Trivial: "Write-Host" should be "Write-Output"
This commit is contained in:
parent
88a8826925
commit
b48b7d2ea0
11 changed files with 165 additions and 117 deletions
|
@ -9,11 +9,11 @@ param(
|
|||
|
||||
if($Help)
|
||||
{
|
||||
Write-Host "Usage: .\update-dependencies.ps1"
|
||||
Write-Host ""
|
||||
Write-Host "Options:"
|
||||
Write-Host " -Help Display this help message"
|
||||
Write-Host " -Update Update dependencies (but don't open a PR)"
|
||||
Write-Output "Usage: .\update-dependencies.ps1"
|
||||
Write-Output ""
|
||||
Write-Output "Options:"
|
||||
Write-Output " -Help Display this help message"
|
||||
Write-Output " -Update Update dependencies (but don't open a PR)"
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ if (!$env:DOTNET_INSTALL_DIR)
|
|||
}
|
||||
|
||||
# Install a stage 0
|
||||
Write-Host "Installing .NET Core CLI Stage 0"
|
||||
Write-Output "Installing .NET Core CLI Stage 0"
|
||||
& "$RepoRoot\scripts\obtain\dotnet-install.ps1" -Channel "master" -Architecture $Architecture
|
||||
if($LASTEXITCODE -ne 0) { throw "Failed to install stage0" }
|
||||
|
||||
|
@ -43,11 +43,11 @@ if($LASTEXITCODE -ne 0) { throw "Failed to install stage0" }
|
|||
$env:PATH = "$env:DOTNET_INSTALL_DIR;$env:PATH"
|
||||
|
||||
# Restore the app
|
||||
Write-Host "Restoring $ProjectPath..."
|
||||
Write-Output "Restoring $ProjectPath..."
|
||||
dotnet restore "$ProjectPath"
|
||||
if($LASTEXITCODE -ne 0) { throw "Failed to restore" }
|
||||
|
||||
# Run the app
|
||||
Write-Host "Invoking App $ProjectPath..."
|
||||
Write-Output "Invoking App $ProjectPath..."
|
||||
dotnet run -p "$ProjectPath" "$ProjectArgs"
|
||||
if($LASTEXITCODE -ne 0) { throw "Build failed" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue