Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] What about VB scripting? #247

Closed
maximpashuk opened this issue Apr 12, 2018 · 3 comments
Closed

[question] What about VB scripting? #247

maximpashuk opened this issue Apr 12, 2018 · 3 comments
Labels

Comments

@maximpashuk
Copy link

I found a package on nuget:

https://www.nuget.org/packages/Microsoft.CodeAnalysis.Scripting/

Description says that Roslyn can also support scripting for VB language.
Any plans on this project to support VB scripting in future?

I know that F# compiler not based on Roslyn so it is very hard to support F# scripting (also project like Fake already exists), but VB is supported.

For newbies in programming VB scripting may be a good start point I think.

@filipw
Copy link
Member

filipw commented Apr 14, 2018

The description is misleading. This is a shared package that was indeed intended to be used by both C# and VB.

However, Roslyn scripting support for VB has been put on hold. There was a beta package as part of Roslyn 1.0.0-beta, but afterwards it was never released.
You can still see traces of it in the Roslyn source code. We even build a prototype of VB support in the scriptcs project but it was abandoned.

It will probably come at some point in the future, but, like I said, AFAIK no one is working on it on the Roslyn side at the moment, so even if it happens, it will take a long time. I will close this issue for now, because there is nothing for us to do here.

@filipw filipw closed this as completed Apr 14, 2018
@maximpashuk
Copy link
Author

thank for an answer

@TomasHubelbauer
Copy link

Just want to chip in here and say this would be cool to have. Not that I write VB .NET every day or anything, but it has language support for XML syntax literals with expression interpolation and this is a really handy feature when you need to produce a fragment of XML where you just need to interpolate some data in.

~$ dotnet script > file.xml
> <root>
>   <currentDirectory><%= Directory.GetCurrentDirectory() %></currentDirectory>
> </root>

Being able to run something like this would be nice :-) But from you comment I get that this is an undertaking so I am completely happy with some point in the future if ever, really. Just highlighting a cool use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants