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 :-/
对于那些从谷歌来到这里的人,不,在我写这篇文章的时候,VS 2019 中没有 VB 交互窗口,他们也不打算实现它。
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, eg, 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.