LINQPad in Visual Studio

后端 未结 2 867
陌清茗
陌清茗 2020-12-12 17:40
public static class Extensions{
public static void Dump(this T o) { }
public static void Dump(this T o, string s) { }}

These line

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 17:56

    It's not a dll for LINQPad - you need to reference the LINQPad.exe itself.

    Right-click your project in Visual Studio -> Add Reference -> Browse to the exe binary file location, typically found in its install directory C:\Program Files\LINQPad\ --> select LINQPad.exe.

    Once done, then you can add a "using directive" for it in your file:

    using System.Diagnostics;
    using System.IO;
    using LINQPad;
    

    The method LINQPad.Util.CreateXhtmlWriter will now be available for you to use.

提交回复
热议问题