From 79e0b98ee1489b3070466592b466ebb300d3cb5b Mon Sep 17 00:00:00 2001 From: StarsbySea <66008060+StarsbySea@users.noreply.github.com> Date: Sat, 25 Feb 2023 16:28:51 +0800 Subject: [PATCH] dotnet-sdk: Add an uninstall note and fix checkver (#4476) * dotnet-sdk: Add an uninstall note * Update bucket/dotnet-sdk.json Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> * Update dotnet-sdk.json * Update dotnet-sdk.json * Update dotnet-sdk.json --------- Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --- bucket/dotnet-sdk.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bucket/dotnet-sdk.json b/bucket/dotnet-sdk.json index b669373491..81ade957f6 100644 --- a/bucket/dotnet-sdk.json +++ b/bucket/dotnet-sdk.json @@ -25,9 +25,10 @@ "DOTNET_ROOT": "$dir", "MSBuildSDKsPath": "$dir\\sdk\\$version\\Sdks" }, + "pre_uninstall": "info 'If the uninstall fails with a message saying that access is denied, you may need to log out of your current account, log back in and try again.'", "checkver": { "url": "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json", - "regex": "(?s)(?[\\d.]+)[^\\d]*?([\\d.]+)[^\\d]*?(?:sts|lts)" + "regex": "\"latest-runtime\": \"(?[\\d.]+)\",[\\s\\S]+?\"latest-sdk\": \"([\\d.]+)\",[\\s\\S]+?\"release-type\" : \"(sts|lts)\"" }, "autoupdate": { "architecture": {