Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedup download of dotnet cli bundle #910

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions appveyor-build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,8 @@ if not exist %_dotnetexe% (
@if ERRORLEVEL 1 echo Error: fetch dotnetcli failed && goto :failure
)

pushd .\lkg & ..\%_dotnetexe% restore project.json &popd
@if ERRORLEVEL 1 echo Error: dotnet restore failed && goto :failure
pushd .\lkg & ..\%_dotnetexe% publish project.json -f dnxcore50 -r win7-x64 -o ..\packages\lkg &popd
@if ERRORLEVEL 1 echo Error: dotnet publish failed && goto :failure
copy /y .\packages\dotnet\bin\* .\packages\lkg
@if ERRORLEVEL 1 echo Error: copy of dotnet bin to lkg failed && goto :failure

rem rename fsc and coreconsole to allow fsc.exe to to start compiler
pushd .\packages\lkg & ren fsc.exe fsc.dll & popd
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-dotnetcli.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ $clipath = $args[0]
$BackUpPath = [System.IO.Path]::Combine($args[1], "dotnet-latest.zip")
$Destination = [System.IO.Path]::Combine($args[1], "dotnet")

Invoke-WebRequest $clipath -OutFile $BackUpPath
Invoke-WebRequest -UseBasicParsing $clipath -OutFile $BackUpPath
Add-Type -assembly "system.io.compression.filesystem"
[io.compression.zipfile]::ExtractToDirectory($BackUpPath, $destination)