Skip to content

Commit 89688da

Browse files
committed
try fix dotnet install scripts
1 parent dc11917 commit 89688da

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
chmod +x ./.github/scripts/uninstall-dotnet-linux
4+
./.github/scripts/uninstall-dotnet-linux
File renamed without changes.

.github/scripts/install-dotnet-windows.ps1

100644100755
File mode changed.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
echo "Starting .NET uninstall on macOS..."
4+
5+
# Define paths and URLs
6+
UNINSTALL_TOOL_URL="https://aka.ms/dotnet-core-uninstall-tool-macos"
7+
UNINSTALL_TOOL_DIR="/usr/local/share/dotnet-core-uninstall"
8+
ZIP_PATH="/tmp/dotnet-core-uninstall-tool.zip"
9+
TOOL_EXEC="$UNINSTALL_TOOL_DIR/dotnet-core-uninstall"
10+
11+
# Download the uninstall tool
12+
echo "Downloading .NET Uninstall Tool..."
13+
curl -L "$UNINSTALL_TOOL_URL" -o "$ZIP_PATH"
14+
15+
# Create destination directory
16+
sudo mkdir -p "$UNINSTALL_TOOL_DIR"
17+
18+
# Extract the tool
19+
echo "Extracting..."
20+
sudo unzip -o "$ZIP_PATH" -d "$UNINSTALL_TOOL_DIR"
21+
rm "$ZIP_PATH"
22+
23+
# Make it executable
24+
sudo chmod +x "$TOOL_EXEC"
25+
26+
# Perform uninstall
27+
echo "Removing all SDKs and runtimes..."
28+
"$TOOL_EXEC" remove --all
29+
30+
echo ".NET uninstall process completed."
File renamed without changes.

.github/scripts/uninstall-dotnet-windows.ps1

100644100755
File mode changed.

0 commit comments

Comments
 (0)