`UriFormatException` when adding a `#load` tag to my query
I am receiving a
System.UriFormatException: Invalid URI: The format of the URI could not be determined. exception when adding a
#load tag to my linqpad script's. This includes adding xunit support to the queries.
I believe the cause of this issue is that I use a relative path for my queries folder.
LINQPad Version: 7.7.3 x64 (beta)
Host runtime version: 6.0.14
Default query runtime version: 7.0.3
Default query reference assembly version: 7.0.3
Roslyn Version: 4.4.0-6.22561.11
FSharp.Compiler.Service version: 22.214.171.124
NuGet client version: 126.96.36.199
Results rendering engine: Edge Chromium Engine 110.0.1587.63 (WebView2)
Try the latest beta and let me know if it fixes this issue.
Thanks for the quick turnaround time! It no longer has an unhandled exception; however, I now get this message:
I did make sure the file was saved prior to adding xunit to the query.
Here are my logs btw: https://pastebin.com/hVhStpWw
I'm sorry, I didn't notice the comment you made previously about the likely cause. LINQPad doesn't support a relative path for the My Queries folder. I presume you want it to be relative to where LINQPad has been installed?
I use the portable versions of linqpad5 as well as linqpad7 and keep my queries in a common location. My folder structure looks like this:
I gotta say, for it not being a supported feature, this is the first issue I have run into with it