GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — interactive/repack.ps1 at main · dotnet/interactive

This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Expand file tree

/

repack.ps1

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
38 lines (32 loc) · 1.19 KB
/

repack.ps1

Copy path

File metadata and controls

38 lines (32 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Push-Location $PSScriptRoot
$ErrorActionPreference = "Stop"
try
{
# clean up the previously-cached NuGet packages
$nugetCachePath = $env:NUGET_HTTP_CACHE_PATH
if (-not $nugetCachePath) {
$nugetCachePath = "~\.nuget\packages"
}
Remove-Item -Recurse "$nugetCachePath\microsoft.dotnet.interactive*" -Force
# build and pack dotnet-interactive
dotnet clean -c debug
# dotnet build -c debug /p:Version=2.0.0
dotnet pack -c debug /p:PackageVersion=2.0.0
# copy the dotnet-interactive packages to the temp directory
$destinationPath = "C:\temp\packages"
if (-not (Test-Path -Path $destinationPath -PathType Container)) {
New-Item -Path $destinationPath -ItemType Directory -Force
}
Get-ChildItem -Recurse -Filter *.nupkg | Move-Item -Destination $destinationPath -Force
# delete the #r nuget caches
if (Test-Path -Path ~\.packagemanagement\nuget\Cache -PathType Container) {
Remove-Item -Recurse -Force ~\.packagemanagement\nuget\Cache
}
if (Test-Path -Path ~\.packagemanagement\nuget\Projects -PathType Container) {
Remove-Item -Recurse -Force ~\.packagemanagement\nuget\Projects
}
}
finally
{
$PopLocation
}
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.