1

我在获取修改后的bolero应用程序以执行 HotReload 时遇到问题。问题似乎出现在bolero-live错误日志的顶部(为方便起见插入了换行符)。但是,尽管在 github 上有客户端和服务器项目的参考库代码,但源代码bolero-live似乎不可用。我欢迎任何见解。

fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLTL27BTITCT", Request id "0HLTL27BTITCT:00000001": 
      An unhandled exception was thrown by the application.
System.IO.DirectoryNotFoundException: 
      Could not find a part of the path '
          /mnt/drive1/testproj/test1/src/test1.Serve/bin/Debug
            /netstandard2.0/dist/_framework/_bin/test1.Client.dll
          '
   at Interop.ThrowExceptionForIoErrno(
          ErrorInfo errorInfo, String path, Boolean isDirectory 
          ,Func`2 errorRewriter
          )
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(
          String path, OpenFlags flags, Int32 mode
          )
   at System.IO.FileStream..ctor(
          String path, FileMode mode, FileAccess access, 
          FileShare share, Int32 bufferSize, FileOptions options
          )
   at System.IO.FileStream..ctor(
          String path, FileMode mode, FileAccess access
          ,FileShare share
          )
   at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes)
   at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   at Elmish.HotReload.Bolero.Cli.ListenerController.Update() in
          /root/TeamCity/buildAgent/work/bbeb18eb622e1e0d/src
             /bolero-live/ListenerController.fs
          :line 39
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor
          .AwaitableResultExecutor.Execute(
            IActionResultTypeMapper mapper
            ,ObjectMethodExecutor executor
            ,Object controller, Object[] arguments
            )
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
          .InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
          .InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
          .Rethrow(ActionExecutedContext context)
4

2 回答 2

1

bolero-live与 Bolero HotReload 模板实现不同。bolero-live应该也重新加载底层的dll,而不仅仅是前端。你可以在这里找到源代码

不幸的是,它没有得到大量维护或与最新的 Bolero 版本保持同步(主要是因为我没有时间维护它)。该异常似乎表明 cli 工具本身无法从 FCSWatch 中找到新制作的 dll。

于 2020-02-19T21:45:43.190 回答
0

bolero-live似乎只是github.com上的 FCSWatch

于 2020-02-19T21:28:48.210 回答