tBu*_*eck 4 c# asp.net .net-core asp.net-core
我目前正在遵循本指南,以便在我现有的 ASP.NET Core 项目中构建 Identity。但是,当尝试使用 help 选项运行 scaffolder 命令时,我收到以下错误消息:
> dotnet aspnet-codegenerator --help
The application to execute does not exist: 'C:\Users\Tim\.dotnet\tools\.store\dotnet-aspnet-codegenerator\2.2.0-rtm-35687\dotnet-aspnet-codegener
ator\2.2.0-rtm-35687\tools\netcoreapp2.1\any\dotnet-aspnet-codegenerator.dll'.Run Code Online (Sandbox Code Playgroud)
我检查了 .dotnet\tools.store 目录,该工具似乎安装正确。但是,它安装在一个2.2.0目录中,而不是正在查找的2.2.0-rtm-35687目录dotnet tool中。
我已经尝试再次卸载该工具并再次安装它;更新 .NET Core(现在是 v2.2.100),但没有帮助。有没有办法配置在哪里dotnet tool寻找全局安装的工具?
小智 5
只需在 c:\users\.dotnet\tools.store\dotnet-aspnet-codegenerator 文件夹和 c:\users 内的两个位置将文件夹名称从“2.2.0”更改为“2.2.0-rtm-35687” \.dotnet\tools.store\dotnet-aspnet-codegenerator\2.2.0-rtm-35687\dotnet-aspnet-codegenerator 文件夹
现在尝试运行该命令。这个对我有用。
PS:我不太确定这将如何影响其他领域,到目前为止还没有检测到任何
| 归档时间: |
|
| 查看次数: |
883 次 |
| 最近记录: |