无法卸载工具dotnet

时间:2021-06-15 19:02:12

标签: c# aws-lambda visual-studio-2019 dotnet-tool

下午大家,

我已经使用 Mock Lambda 测试工具一段时间了,没有出现任何问题。但是,在最近更新到 Visual Studio 2019 16.10.1 之后,该工具不再起作用。我一直遇到错误:

>>> from datar.all import f, tribble, pivot_wider, rename_with
>>> 
>>> df = tribble(
...     f.ID,  f.Hour,  f.Prob,  f.Rank,
...     123,   10,      0.4,     4,
...     123,   11,      0.6,     3,
...     123,   12,      1.0,     1,
...     123,   13,      0.9,     2,
...     456,   10,      0.8,     1,
...     456,   11,      0.5,     2,
...     456,   12,      0.1,     4,
...     456,   13,      0.2,     3,
... )
>>> 
>>> df >> pivot_wider(
...     names_from=f.Rank, 
...     values_from=[f.Hour, f.Prob], 
...     names_glue='{_value}_{Rank}'
... ) >> rename_with(
...     lambda col: col.replace('Hour', 'Rank')
... )
       ID  Rank_1  Rank_2  Rank_3  Rank_4    Prob_1    Prob_2    Prob_3    Prob_4
  <int64> <int64> <int64> <int64> <int64> <float64> <float64> <float64> <float64>
0     123      12      13      11      10       1.0       0.9       0.6       0.4
1     456      10      11      13      12       0.8       0.5       0.2       0.1

我发现测试工具存在问题,但是当我尝试卸载该工具时出现此错误:

The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[22900] dotnet-lambda-test-tool-3.1.exe' has exited with code -2147450726 (0x8000809a).

我也无法安装该工具,因为我收到此错误:

Failed to uninstall tool 'amazon.lambda.testtool-3.1': Failed to retrieve tool configuration: Could not find file 'C:\Users\nacholibre\.dotnet\tools\.store\amazon.lambda.testtool-3.1\0.11.3\project.assets.json'.

位于 dotnet\tools.store\amazon.lambdatesttool.... 的文件夹完全是空的。我试图重命名该文件夹以进行全新安装,但没有成功,仍然出现相同的错误。

所以...有谁知道我如何手动删除这个工具以便我可以重新安装??

1 个答案:

答案 0 :(得分:0)

必须重命名位于此处的 exe 才能重新安装...

“C:\Users\nacholibre.dotnet\tools\dotnet-lambda-test-tool-3.1.exe”

相关问题