-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Freshness for May #54091
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
Open
adegeo
wants to merge
2
commits into
main
Choose a base branch
from
adegeo/52956/freshness
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Freshness for May #54091
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| title: dotnet-core-uninstall dry-run command | ||
| description: The dotnet-core-uninstall dry-run command simulates uninstalling the target .NET SDK or runtime. Status is reported for potential removal. | ||
| author: adegeo | ||
| ms.date: 08/04/2024 | ||
| ms.date: 05/27/2026 | ||
| zone_pivot_groups: operating-systems-set-three | ||
| --- | ||
|
|
||
|
|
@@ -22,89 +22,86 @@ | |
| ::: zone pivot="os-windows" | ||
|
|
||
| ```dotnetcli | ||
| dotnet-core-uninstall dry-run <TARGET> [--x64|--x86] <VERSION>... | ||
| [-v|--verbosity <LEVEL>] [--force] | ||
| dotnet-core-uninstall dry-run <TARGET> <FILTER> [-v|--verbosity <LEVEL>] | ||
| [--force] [-y|--yes] | ||
|
|
||
| dotnet-core-uninstall dry-run <TARGET> [--x64|--x86] <FILTER> | ||
| [-v|--verbosity <LEVEL>] | ||
|
|
||
| dotnet-core-uninstall dry-run -h|--help|-? | ||
| dotnet-core-uninstall dry-run -h|--help | ||
| ``` | ||
|
|
||
| ::: zone-end | ||
|
|
||
| ::: zone pivot="os-macos" | ||
|
|
||
| ```dotnetcli | ||
| dotnet-core-uninstall dry-run <TARGET> <VERSION>... | ||
| [-v|--verbosity <LEVEL>] [--force] [-y|--yes] | ||
|
|
||
| dotnet-core-uninstall dry-run <TARGET> <FILTER> | ||
| [-v|--verbosity <LEVEL>] [--force] [-y|--yes] | ||
| dotnet-core-uninstall dry-run <TARGET> <FILTER> [-v|--verbosity <LEVEL>] | ||
| [--force] [-y|--yes] [--preserve-vs-for-mac-sdks] | ||
|
|
||
| dotnet-core-uninstall dry-run -h|--help|-? | ||
| dotnet-core-uninstall dry-run -h|--help | ||
| ``` | ||
|
|
||
| ::: zone-end | ||
|
|
||
|
|
||
|
Check failure on line 44 in docs/core/additional-tools/uninstall-tool-cli-dry-run.md
|
||
| ## Description | ||
|
|
||
| The `dotnet-core-uninstall dry-run` command simulates .NET SDK and runtime removal. A status output is provided for each .NET SDK and runtime that would have been removed by the tool. | ||
|
|
||
| ### Arguments | ||
|
|
||
| **`TARGET`** | ||
|
|
||
| The type you want to uninstall. Valid options are listed in the [Options - TARGET](#options---target) section. | ||
|
|
||
| **`VERSION`** | ||
|
|
||
| The version to uninstall. You can list several versions separated by a space. Response files are also supported. | ||
|
|
||
| > [!TIP] | ||
| > Response files are an alternative to placing all the versions on the command line. They're text files, typically with a *\*.rsp* extension, and each version is listed on a separate line. To specify a response file for the `VERSION` argument, use the \@ character immediately followed by the response file name. | ||
|
|
||
| **`FILTER`** | ||
|
|
||
| Specifies a value used to filter the `TARGET`. Valid options are listed in the [Options - FILTER](#options---filter) section. | ||
|
|
||
| ## Options - TARGET | ||
|
|
||
| ::: zone pivot="os-windows" | ||
|
|
||
| - **`--aspnet-runtime`** | ||
| Discovers all the ASP.NET Core runtimes that can be uninstalled with this tool. | ||
|
|
||
| Removes ASP.NET Core runtimes only. | ||
|
|
||
| - **`--hosting-bundle`** | ||
|
|
||
| Lists all the .NET hosting bundles that can be uninstalled with this tool. | ||
|
|
||
| ::: zone-end | ||
| Removes .NET Core Runtime and Hosting Bundles only. | ||
|
|
||
| - **`--runtime`** | ||
|
|
||
| Lists all the .NET runtimes that can be uninstalled with this tool. | ||
| Removes .NET Core runtimes only. | ||
|
|
||
| - **`--sdk`** | ||
|
|
||
| Lists all the .NET SDKs that can be uninstalled with this tool. | ||
| Removes .NET Core SDKs only. | ||
|
|
||
| ::: zone pivot="os-windows" | ||
| - **`--windows-desktop-runtime`** | ||
|
|
||
| - **`--x64`** | ||
| Removes Windows Desktop runtimes only. | ||
|
|
||
| Lists all the x64 .NET SDKs and runtimes that can be uninstalled with this tool. | ||
| - **`--arm64`** | ||
|
|
||
| > [!NOTE] | ||
| > If `--x64` or `--x86` isn't specified, then both x64 and x86 will be removed. | ||
| Use with `--sdk`, `--runtime`, `--aspnet-runtime`, and `--windows-desktop-runtime` to remove arm64. | ||
|
|
||
| - **`--x64`** | ||
|
|
||
| Use with `--sdk`, `--runtime`, `--aspnet-runtime`, and `--windows-desktop-runtime` to remove x64. | ||
|
|
||
| - **`--x86`** | ||
|
|
||
| Lists all the x86 .NET SDKs and runtimes that can be uninstalled with this tool. | ||
| Use with `--sdk`, `--runtime`, `--aspnet-runtime`, and `--windows-desktop-runtime` to remove x86. | ||
|
|
||
| > [!NOTE] | ||
| > If `--x64` or `--x86` isn't specified, then both x64 and x86 will be removed. | ||
| ::: zone-end | ||
|
|
||
| ::: zone pivot="os-macos" | ||
|
|
||
| - **`--runtime`** | ||
|
|
||
| Removes .NET Core runtimes only. | ||
|
|
||
| - **`--sdk`** | ||
|
|
||
| Removes .NET Core SDKs only. | ||
|
|
||
| ::: zone-end | ||
|
|
||
|
|
@@ -146,26 +143,56 @@ | |
|
|
||
| ## Options | ||
|
|
||
| ::: zone pivot="os-windows" | ||
|
|
||
| - **`--force`** | ||
|
|
||
| Forces removal of versions that might be used by Visual Studio. | ||
|
|
||
| ::: zone-end | ||
|
|
||
| ::: zone pivot="os-macos" | ||
|
|
||
| - **`--force`** | ||
|
|
||
| Forces removal of versions that might be used by Visual Studio for Mac or SDKs. | ||
|
|
||
| - **`--preserve-vs-for-mac-sdks`** | ||
|
|
||
| Prevents removal of SDKs and runtimes that have a high probability of being used by Visual Studio for Mac. | ||
|
|
||
| > [!NOTE] | ||
| > Visual Studio for Mac is out of support. | ||
|
|
||
| ::: zone-end | ||
|
|
||
| - **`-v, --verbosity <LEVEL>`** | ||
|
|
||
| Sets the verbosity level. The default value is `normal`. Allowed values are: | ||
| Sets the verbosity level. Allowed values are: | ||
|
|
||
| - `q[uiet]` | ||
| - `m[inimal]` | ||
| - `n[ormal]` | ||
| - `d[etailed]` | ||
| - `diag[nostic]`. | ||
| - `diag[nostic]` | ||
|
|
||
| - **`-?|-h|--help`** | ||
|
|
||
| Shows help and usage information | ||
| Shows help and usage information. | ||
|
|
||
| ::: zone pivot="os-windows" | ||
|
|
||
| > [!NOTE] | ||
| > By default, .NET SDKs and runtimes that might be required by Visual Studio or other SDKs aren't included in the `dotnet-core-uninstall dry-run` output. Also, depending on the state of the machine, some of the specified SDKs and runtimes might not be included in the output. To include all the SDKs and runtimes, list them explicitly as arguments or use the `--force` option. | ||
| > By default, SDKs and runtimes that have a high probability of being used by Visual Studio aren't removed. To remove these, specify them individually or use `--force`. If removing SDKs or runtimes causes issues with your Visual Studio installation, run Repair. SDKs and runtimes are available for download at [https://aka.ms/dotnet-core-download](https://aka.ms/dotnet-core-download). | ||
|
|
||
| ::: zone-end | ||
|
|
||
| ::: zone pivot="os-macos" | ||
|
|
||
| > [!NOTE] | ||
| > Use `--preserve-vs-for-mac-sdks` to prevent removal of SDKs and runtimes that have a high probability of being used by Visual Studio for Mac. Visual Studio for Mac is out of support. SDKs and runtimes are available for download at [https://aka.ms/dotnet-core-download](https://aka.ms/dotnet-core-download). | ||
|
|
||
| ::: zone-end | ||
|
|
||
| - Dry run of removing all the .NET runtimes that have been superseded by higher patches: | ||
|
|
||
|
|
@@ -176,12 +203,9 @@ | |
| - Dry run of removing all the .NET SDKs below the version `6.0.301`: | ||
|
|
||
| ```console | ||
| dotnet-core-uninstall whatif --all-below 6.0.301 --sdk | ||
| dotnet-core-uninstall dry-run --all-below 6.0.301 --sdk | ||
| ``` | ||
|
|
||
| > [!TIP] | ||
| > The `dotnet-core-uninstall whatif` command is the same command as `dry-run`. | ||
|
|
||
| ## See also | ||
|
|
||
| - [.NET uninstall tool overview](uninstall-tool-overview.md) | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.