Edit and debug CSX files
I have been playing with scriptcs and csx files. It would be awesome if LinqPad could edit and debug csx files just like linq ones. With Roslyn being the future, seems like it would be an important feature for LinqPad (which is awesome!! by the way)
-
Nick Campau commented
Supporting the *.csx script file format natively in LinqPad would be super helpful to me. The ability to run *.csx files on any platform that .NET supports makes it the ideal scripting file. With that said I still enjoy using LinqPad as my editor/debugger for all the reasons that make LinqPad great. It would be great if the csx script files supported a simple external file import statement that contained all the LinqPad specific configuration settings that today are in the header of the *.linq file. Bonus points for the include script added support for LinqPad native functionality in the Util class. I realize that some functions within that class require LinqPad so a runtime check with exception if executed outside of LinqPad would be fine.
e.g.
#load "./linqpad.csx"; -
Cameron commented
This would be awesome!!! It would allow moving C# code between the ipad [https://goo.gl/DsjX1R], LinqPad, and Visual Studio in a single-file format.
-
Yoshifumi Kawai commented
I want it.
csx is some different with LINQPad's C# Expression and C# Statement.I'm trying latest roslyn scripting package "Microsoft.CodeAnalysis.CSharp.Scripting" (Nov, 14th)
It can define a class in the script file, returns last value, using in the script, #r, #load, etc...```
var aaa = 10;// define class in script
public class Foo
{
public int Bar {get; set;}
}// return
new Foo() { Bar = aaa }
```I think need to add new language mode(C# Scripting).