Replies: 2 comments 1 reply
-
Looks like an awesome plan, if on the large-ish side :) |
Beta Was this translation helpful? Give feedback.
-
No static classes in Visual basicVisual Basic has no concept of static (i.e. non-abstract, non-instantiable) classes.
The type most similar to a non-instantiable class in VB is a For the reasons above, In conclusion, unless someone comes up with a better idea, I think |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As code generator support is part of Roslyn APIs, it also works for Visual Basic projects. I have a demo project that proves it (VS2022 even shows generated code, just like it does on C# projects).
I see there is currently some work underway to add support for both VB and F#; the latter being, however, bound to a dead end, as F# does not support code generators nor is there any support in sight for the foreseeable future.
Would a PR for what follows be accepted?
I promise it's not going to be a mega-spaghetti-commit! 😄 It's just that doing one thing per PR would take approximately 5x the time.
If @kzu agrees I can use .NET SDK Preview 3 to build (of course it will not be required by referencing projects): the combination of raw string literals and a few
StringBuilder
extension methods may efficiently replace Scriban. The preview is "go-live", meaning that Microsoft supports its use in production by companies big enough to sue them 😈 so I guess it's stable enough.Beta Was this translation helpful? Give feedback.
All reactions