Search
-
Re: LINQPad 8 early preview now available
Are you aware of the predefined compilation symbols? #if NET8// Code that requires .NET 8 or later#endif#if NET7// Code that requires .NET 7 or later#endif#if NET6// Code that requires .NET 6 or later#endif#if NETCORE// Code that requires .NET Core or later#else// Code that runs under .NET Framework (LINQPad 5)#endif -
Re: Detect if running inside linqpad or lprun
-
Re: Writing custom visualizer for Linqpad 6
-
Re: Macro or Util to identifier LINQPad version?
-
Re: Missing preprocessor symbols for Net Version
In LINQPad, the symbol is just NET6 - this is equivalent to NET6_0_OR_GREATER The default My Extensions query text should contain the following: #region Advanced - How to multi-target// The NET6 symbol is active when the query runs on .NET 6 or later.#if NET6// Code that requires .NET 6 or later#endif#if NET5// Code that… -
LPRun7.exe CMD directive bug
-
BUG? Preprocessor directive LINQPAD
Preprocessor directive LINQPAD is always defined within LINQPad but code appears as if not defined in the code editor.... code ends up compiling. Code editor coloring works fine for other directives. Sample below running as C# Program. Discovered in v5.31.... tested in v5.33 as well. //#define LINQPADTEST void Main() { #if… -
Re: Refresh Schema Explorer programmatically from dynamic driver
-
In 6.12.4 Beta, #define before #load does not propagate
The topic kinda says it all, but basically, say I have a LINQPad file like this: #define LINQPad#load "HelloWorld\Program.cs"HelloWorld.Program.Main(); With HelloWorld\Program.cs like this: using System;namespace HelloWorld{ static class Program { internal static void Main() =>#if LINQPad Console.WriteLine("Hello… -
Re: Execution of F# code fails if only VS 2012 RC is installed
Are you running the latest beta? LINQPad searches the folder you mention for fsc.exe. It will also recognize fsc.exe if it's in the same folder as LINQPad.exe:static string GetFscPath () { string stem, path; path = Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "fsc.exe"); if (File.Exists (path)) return path; #if V4… -
Beta: Util.Compile - Serialization Exception
-
LINQPad 5 beta & preprocessor directives
Hi @JoeAlbahari, I'm guessing this is something I will have to live with, but I thought I would ask, just in case :) In LINQPad 4, it is possible to use autocompletion even when the code you are writing falls inside a preprocessor block where the specified symbol hasn't been defined. In LINQPad 5 beta, however, it gray's… -
Re: lprun to html with chart
Hi Joe, with that I was successful. Looks a bit like a hack, as I have to do different things in lprun compared to GUI, but I think I can live with that. Thanks for the hint to bitmap.Save() foreach (var ser in issues.Select(i => i.Serial).Distinct()){ var ch = issues.Where(i => i.Serial == ser).Chart(i => i.Date);… -
Re: Integrating LinqPad library from nuget into .net application
Hopefully you will get my gist from this.... using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Linq; using System.Data.Linq.Mapping; namespace LinqPadIntegration { public class LinqPad_Library { private string _queryText;…