Questions tagged [roslynpad]

RoslynPad is an open-source code editor for C# scripts (.csx files), built using Roslyn and AvalonEdit. Some of its features include code completion, signature help, diagnostics (squiggles), code actions (bulbs) and NuGet support.

Roslynpad is a simple cross-platform C# editor based on Roslyn and AvalonEdit.

You might also take a look at

11 questions
7
votes
1 answer

Using Extension methods in RoslynPad or Polyglot notebooks

I try to understand an extension method similar to this code var p = new Person("Tim"); p.LastName = "Meier"; // reader.Get("IsDerivat"); var IsOlivia = p.Get("Olivia"); This is my code inside RoslynPad: public static class…
surfmuggle
  • 5,527
  • 7
  • 48
  • 77
4
votes
1 answer

Is it possible to include intellisense for the object global of globalsType in the RoslynPad RoslynCodeEditor control?

I've been working with the RoslynCodeEditor control and attempting to find a way to pass my globals object to the RoslynCodeEditor and have intellisense within my scripts. Does anyone know how I can grant access to the context object properties or…
Wil P
  • 3,341
  • 1
  • 20
  • 20
4
votes
1 answer

Reference one RoslynPad script from another

What I'd like to do is reference one script from another. One way to make this happen might be using assemblies. RoslynPad allows compiling a script into an assembly. Here is what I have tried so far. Script A, which is compiled to…
2
votes
1 answer

Is there a way to "cap" RoslynPad's Roslyn's IntelliSense?

I'm actually integrating the amazing RoslynPad into a WinForms application and working damn well. The point of the integration is allowing the user to type in some C# code so it can be used in a future. Thing is I'm interested on "capping" the user…
Gonzo345
  • 1,133
  • 3
  • 20
  • 42
1
vote
0 answers

Roslyn GetDescriptionAsync gives incomplete description

I am trying to explore Roslyn's code completion service. I am able to get the completion list, but when I try to get the description it only returns the type and access modifiers, but not the actual description (e.g. Function used for printing to…
1
vote
1 answer

How to show OpenFileDialog in RoslynPad

I using following code to show OpenFileDialog using RoslynPad, it complied and run, but no dialog appear, so the snippet keep running forever: #r "framework:Microsoft.WindowsDesktop.App" using System.Windows.Forms; var fd = new OpenFileDialog { …
Horizon
  • 81
  • 5
1
vote
0 answers

Roslyn integration with fastcoloredtextbox to get syntax errors of c#

Im currently making a lightweight c#,vb ide,does anyone know how i can do c#,vb code completion and c#,vb code fixing in fastcoloredtextbox with roslyn? QUESTION: how can i get syntax errors dynamicaly from fctb text,and how i can get like ways of…
Byte
  • 55
  • 11
1
vote
1 answer

RoslynPad FileNotFoundException in Visual Studio Extension

Has anyone successfully managed to run the WPF RoslynPad editor in a Visual Studio Extension (VSIX) (FYI: I'm using Visual Studio 2015 Enterprise)? When trying to initialize the Roslyn host in a VSIX like this: var host = new…
Anil
  • 11
  • 2
0
votes
1 answer

C# dlr LanguageSetup setup for Script Runtime

Please does anyone know how to set up a C# ScriptEngine using Microsoft.CodeAnalysis.CSharp.Scripting var runtimeSetup = new ScriptRuntimeSetup(); LanguageSetup languageSetup = new LanguageSetup( "CSharp.Runtime.Context, CSharp", "CSharp", …
0
votes
1 answer

Assembly manifest mismatch package-install doesn't resolve

The manifest error is not resovled, i try my best (even link Roslyn source code to my project ). Below is the portion of code, which generate error. The project is WINFORM and in Element Host load the Roslyn Assembly. Steps to Reproduce the…
0
votes
1 answer

Roslynpad set a wrapper context

I have a problem with setting a context class to a block of code on a WPF RoslynPad RoslynCodeEditor. I already have codehighlightning and code completion but I wan't to set a context to the code so I can call an override to a method without having…
JS5
  • 11
  • 1