7

Is this possible to have a Visual Basic Interactive window in Visual Studio 2015 like we have for C#?

enter image description here

1
  • The list of pending issues can be found here. It doesn't seem to be very high on anyone's priority list (most of the issues involved haven't been updated for two-three years), so if you want to help move this forward by contributing, it would be welcome.
    – Zev Spitz
    Dec 24, 2018 at 12:17

3 Answers 3

8

At the time of writing the original answer to this, VB.net interactive was in the pipeline, but no longer. As this answer had been accepted, I can't delete it, so here it stays :-/

3
  • For those who came here from Google, no, there isn't a VB Interactive window in VS 2019 at the time I'm writing this, nor do they plan to implement it.
    – fdrobidoux
    Aug 20, 2019 at 17:45
  • @fdrobidoux Thanks - I'd forgotten I'd posted this, If you want to repost your comment as an answer, I'll delete mine as it's no longer accurate :) Aug 22, 2019 at 13:06
  • Eh, no worries, move on.
    – fdrobidoux
    Aug 29, 2019 at 14:58
1

For those who came here from Google, no, there isn't a VB Interactive window in VS 2019 at the time I'm writing this, nor do they plan to implement it.

-1

If you clone the Roslyn repository from GitHub (https://github.com/dotnet/roslyn) one of the projects is called vbi, and you can produce a non-GUI version of C# Interactive (no Intellisense obviously) that does a lot of what C# Interactive does.

From a brief investigation it seems to need each line expressed as a function/method call, e.g., evaluating 3 + 4 gives you an error, but System.Console.WriteLine(3 + 4) displays 7 (you also seem to have to full qualify methods). However you can evaluation System.Math.Pow(2, 7) and get 128 as the answer.

Since it's VB input is case insensitive so system.console.writeline(3 + 4) works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.