dotnet / cli-lab

A guided tool will be provided to enable the controlled clean up of a system such that only the desired versions of the Runtime and SDKs remain.
MIT License
615 stars 56 forks source link

Unable to use in automated script #274

Closed JeroenHo closed 10 months ago

JeroenHo commented 10 months ago

I'm unable to use this tool in an automated environment to uninstall .Net core on our machines. The uninstall command is stuck on user imput:

The following items will be removed: Microsoft .NET Core 2.2.0 - Windows Server Hosting

To avoid breaking Visual Studio or other problems, read https://aka.ms/dotnet-core-uninstall-docs.

Do you want to continue? [y/n]

I expected that the --force would take care of this, but it doesn't And -vq doesn't do anything on this either

Is there any way that this question does not popup?

JeroenHo commented 10 months ago

Sorry...answer was in my face: -y, --yes