I was getting an exception stating that the .learningtransport directory did not exist. The documentation is not 100% clear, but I figured that I had to create it manually. But this didn’t help either. Looking at the sources, I saw that the implementation assumes that the code runs in some folder under the solution file.
This is not always the case when debugging. Someone could specify a different output directory, but specifically with ServiceFabric, SF runs the solution in the local cluster which is not under the solution folder.
It can be workarounded by specifying the transport directory, but it’s not obvious and the developer experience is not great. This could be improved (documented and maybe even explained in the exception text) or find a different solution.