mirror of
https://github.com/actions/setup-dotnet.git
synced 2026-06-06 00:17:08 +00:00
Silent dotnet new globaljson command
This commit is contained in:
parent
50b46b3b1d
commit
255362be61
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ foreach ($version in $Versions)
|
|||
{
|
||||
# Creating temporary global.json file inside e2e-test-csproj dir and setting exact version of .NET inside allows to override default behavior of .NET and run build and tests on that exact version.
|
||||
Write-Host "Creating temporary global.json file for $version .NET version."
|
||||
& $dotnet new globaljson --sdk-version $version --force
|
||||
& $dotnet new globaljson --sdk-version $version --force | Out-Null
|
||||
if (!(Test-Path "./global.json"))
|
||||
{
|
||||
throw "An error occured while creating the global.json file. Exit code: $LASTEXITCODE"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue