I am trying to reference LINQPad.exe, a .NET executable, so that my code can make use of its wonderful .Dump() extension method. Adding a reference to the exe allows me to use the following code on my dev machine, but it breaks ClickOnce ("Reference in the manifest does not match the identity of the downloaded assembly LINQPad.exe.").
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 a .exe and deploy it with ClickOnce (or a similarly easy method)? Note that I cannot just include the .exe and call it as a process - I need to reference it as an API. Also, LINQPad.exe has assemblies inside of it which cause problems when attempting to use ILMerge on the file, so ILMerge doesn't seem to be an option.