Exe link as .NET assembly and deployment using ClickOnce

I am trying to reference LINQPad.exe, the .NET executable, so that my code can use its wonderful extension method .Dump () . Adding a link to exe allows me to use the following code on my dev machine, but it breaks ClickOnce ("The link in the manifest does not match the identifier of the loaded LINQPad.exe assembly.").

public static string DumpString<T>(this T o)
{
    var w = LINQPad.Util.CreateXhtmlWriter();
    w.WriteLine(o);
    return w.ToString();
}

Does anyone know how to reference .exe and deploy it using ClickOnce (or a similarly simple method)? Please note that I cannot just include .exe and name it as a process - I need to refer to it as an API. In addition, LINQPad.exe has assemblies inside it that cause problems when trying to use ILMerge in a file, so ILMerge does not seem to be an option.

+3
source share
2 answers

LINQPad EULA does not allow redistribution without the written permission of the owner of LINQPad.

You are not allowed to do what you want to do, because it is illegal.

- , . Dump() Codeplex .

+1

LinqPad, :

: (no promises) , .

linkqpad.exe . none, copy-to-output-directory false.

, , , , . , , GAC. , "content" copy-to-output- false. , , .

DLL , GAC ( DirectX, Infragistics). , exe...

RobinDotNet

0

Source: https://habr.com/ru/post/1734278/


All Articles