如何卸载通过PowerShell安装的Azure Artifacts Credential Provider
卸载Azure Artifacts Credential Provider的具体步骤
- 先关闭所有NuGet相关进程(如Visual Studio、dotnet命令行工具、NuGet包管理器等),防止文件被占用无法删除。
- 打开PowerShell,执行以下命令删除Credential Provider的核心文件目录:
这两个目录分别对应.NET Core/.NET 5+和.NET Framework环境下的Credential Provider文件。Remove-Item -Path "$env:USERPROFILE/.nuget/plugins/netcore" -Recurse -Force Remove-Item -Path "$env:USERPROFILE/.nuget/plugins/netfx" -Recurse -Force - (可选)检查系统环境变量,若存在
NUGET_CREDENTIALPROVIDER_SESSIONTOKENCACHE_ENABLED等与该凭据提供器相关的变量,直接删除即可完成彻底清理。
内容的提问来源于stack exchange,提问作者user1624858
相关产品推荐
相关产品推荐

