dotnet watch run
命令时,出现以下错误:
我可以通过Visual Studio成功构建和运行项目,但无法使用dotnet cli。如何解决这个错误?未处理的异常。System.IO.FileNotFoundException: 找不到文件或程序集 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'。文件名: 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 在 System.Reflection.RuntimeAssembly.GetType(QCallAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type, ObjectHandleOnStack keepAlive, ObjectHandleOnStack assemblyLoadContext) 在 System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) 在 System.Reflection.Assembly.GetType(String name, Boolean throwOnError) 在 System.StartupHookProvider.CallStartupHook(StartupHookNameOrPath startupHook) 在 System.StartupHookProvider.ProcessStartupHooks()
dotnet watch run
工作”的标题。 - Mojtaba