Best Of
Re: Linqpad 7 not recognized installed .Net 6 SDK
Was there a solution to this problem?
I have the same question but will expand it to .NET 7.
It has worked before but no longer works.
Maybe it's due to me but how do I recover?
// No problem with either VS 2022, VS Code or dotnet new.

Linqpad 7 not recognized installed .Net 6 SDK
I have the .NET 6 SDK installed and Linqpad 7.1.5 installed. Linqpad is not recognizing that .net 6 is available
.Net 6 works in all other IDEs (VSCode, JetBrains Rider). I currently still only have VS2019 and have not upgraded to VS2022 yet (waiting on our IT approval on licensing for that).
Any thoughts on how to get .NET6 to work with Linqpad?

Any plans to use AI just like "Inline Chat" in Github Copilot?
I usually write comments in LINQPad first, then trigger AI completion to get code suggestions. However, if I want to modify a part of the code, there isn't a very convenient way to do it. I wonder if you can provide a usage similar to Github Copilot's "Inline Chat"?
Here is a use case:
- When writing code, select a range with the mouse or keyboard.
- Press Ctrl+I to bring up the Inline Chat window, then enter a prompt.
- After pressing Enter to submit, it will automatically modify the code in the selected range for me.

Re: Query no longer compiles in 8.8.8, did in 8.8.7
@sgmoore said:
Do you have C# preview features enabled?
It compiles if preview disabled.

Re: How to use LPRun8.exe in background?
Alternatively, you can call the Win32 API FreeConsole()
to unallocate the console assigned to the process. LPRun8-x64.exe will show the console while it's starting up, but as soon as it gets to and runs your code, you can call FreeConsole to have the system unallocate it and close it. The process (and form) will continue running like you expect. If you're okay with that brief flicker, then you're just a P/Invoke call away.
[DllImport("Kernel32.dll", CallingConvention = CallingConvention.StdCall)] static extern bool FreeConsole();

Re: Selecting a Framework
LINQPad 8 supports only .NET 3.1 and later, i.e., .NET Core 3.1, 5, 6, 7, 8, and 9.
For .NET Framework 4.x support, you need to download LINQPad 5.

Re: Query no longer compiles in 8.8.8, did in 8.8.7
Do you have C# preview features enabled?

Re: Customizing Dump in a DataContext package
The static ToDump
method applies to scripts and My Extensions - not drivers.
With drivers, you instead override the PreprocessObjectToWrite
method. This is described in the documentation:
https://www.linqpad.net/Extensibility.aspx

Re: linqPad IWebdriver want to connect to Mysql ?
Also, change the Language in the dropdown to 'C# Statements'.
Or else wrap your code in a void Main()
:
void Main() { IWebDriver driver = ... ... }

Re: LinqPad navigation properties populated show in rich text
What is this type? Where it came from? Are you sure it is not delay loaded?
Please provide minimum working example.
